I am getting run time error in ATM problem code is working fine but getting erro

a=float(input())
b= float(input())

if(a%5==0):
if(a<b):
c=b-a-0.5

    print(c)
else:
    print(b)

else:
print(b)