Not taking complete input

can anyone tell me why this solution is not taking complete inputs
qn - CodeChef

and the solution is
https://www.codechef.com/viewsolution/66483572

i am running it on vs code and then i got to know it is not taking complete input