Why does this give a NZEC error,problem code:HS08TEST

x=int(input(""))#withdrwal
y=float(input(""))#balance
if x%5!=0 or x>=2000 or x<0 or y>=2000 or y<=0 or x>y:
print(y)
exit(0)
else:
print(y-x-0.5)
exit(0)