WA in problem "Fit to Play"

,

CodeChef: Practical coding for everyone. What is wrong with this solution of mine for Fit to Play?(PRACTICE EASY QUESTION)

No answer :(.

The link is not valid I guess .