why it is showing run time error in this code?

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

//