Why am I getting WA in PRFYIT?

I have tried many random testcases but still not able to find testcase on which my code gives WA. Can anyone help?
problem link : PRFYIT Problem - CodeChef
my code : CodeChef: Practical coding for everyone