Can you please help me by identifying the problem in my code executuion?

I wrote the code for the ATM problem of the beginners’ section but got an NZEC error.
# cook your dish here
x = int (input ())
y = int (input ())
if ((x % 5 != 0)&(x+0.5>y)):
print (y)#‘%.2f’%
else:
if(x+y<y):
print (x - y - 0.5)#‘%.2f’%
else:
print(y)

Question:- HS08TEST Problem - CodeChef
RuntimeError:- NZEC
Error:- Traceback (most recent call last):
File “./prog.py”, line 2, in
EOFError: EOF when reading a line

https://www.codechef.com/viewsolution/34895805
Check this hope it helps

That was in C, but I need in python.

Python code, look.