Python input error

When i try to run a code in python on codechef it gives EOF error.

But the same thing if run with custom input it runs perfectly.

Have a look on the following link:

varun1097, did you ever find a solution to this?