y,x = input().split()
x = int(x)
y = float(y)
if y>=0 and x>0:
if x%5==0 and y>=x+.5:
print("{:.2f}".format(y-x-.5))
else:
print("{:.2f}".format(y))
Can you please tell where the error is ?
y,x = input().split()
x = int(x)
y = float(y)
if y>=0 and x>0:
if x%5==0 and y>=x+.5:
print("{:.2f}".format(y-x-.5))
else:
print("{:.2f}".format(y))
Can you please tell where the error is ?