LUCKY10 Why am I getting a wrong answer?

Plz tell me the cases where my program gives incorrect result? CodeChef: Practical coding for everyone

Try to create test file called test.in with content

3
44
77
7
8
123
456

and test it as it is described in FAQ (FAQ | CodeChef), it returns

77
(empty line)
(empty line)

it should be

77
(empty line)
4
1 Like