AT THE GATES : Feb lunch time help

can anyone help me in explaning the third test of this month challenge.
for the below problem. I’m bad at understanding english.

nope, after contest we will give u english lessons, not now


@eswarcareless you are from india. And there was a translation of every question in Hindi of February Lunch time.

He’s from hyderabad so may be he’s not so well versed with hindi too

I got the output for my code (in c) when I am giving custom input ,but I am having submission error.
When I am printing the input got from stdin I am getting 327460 and 000… for rest of the input.
I am able to run the code in dev c++ and it gives the correct output.