ATM problem in python3.6

a,b = input().split()
a = int(a)
b  = float(b)
if a % 5==0 and (a + 0.5) <= b:
    print(b-(a+0.5))
else:
    print(b)

I have tried this problem in many different ways it is giving me NZEC error
Traceback (most recent call last):
File “./prog.py”, line 1, in
EOFError: EOF when reading a line

There is no problem with code untill it works perfectly on local ide you can submit it by Doing “Switch to Non IDE mode” its drawback is you have to test code on your Locally on your computer but if code is right it get submitted…