My output is right but the IDE says its wrong- FLOW006

I didnot find any mistake in my code and even the output is right.
Question: FLOW006 Problem - CodeChef
My answer: CodeChef: Practical coding for everyone