Regarding error on non custom input

I keep getting this following error whenever i try To use non-custom input
Though it work properly on custom Input But after submitting answer it Tells solution is in correct
Traceback (most recent call last):
File “./prog.py”, line 2, in
EOFError: EOF when reading a line