Runtime error

x=int(input())
y=float(input())
if(x%5==0 and x+0.5<=y):
print("%.2f"%(y-x-0.5))
else:
print("%.2f"%(y))

I had code like this for the beginner problem of atm in python . Code is executing and giving correct output but isn’t submitted.