Unable to scan input in java . my code perfectly work on eclipse codechef complier can not scan input show error....i try both scanner and bufferedReader.... help plssss?

when i run with custom input it run successfully but when i run it it shows error
help fast…
thanks in advance