ATM python wrong output

whats wrong with my code?

m,n=input().split()
m,n=int(m),float(n)

if m%5==0 and (m+0.5)0 and n>=0:
a=n-m-(0.5)
print("{:.2f}".format(a))
else:
print("{:.2f}".format(n))

put this in your checking condition (m+.5)<=n