Can anyone tell why this code is not being accepted

This is the code for the problem playfit CodeChef: Practical coding for everyone
Please help me in finding out why it’s not working