x, y=raw_input().split(" ")
x =int(x)
y=float(y)
if x%5==0 and y>x+0.5:
y= y-x-0.50
print '%0.2f'%y
else:
print '%0.2f'%y
x, y=raw_input().split(" ")
x =int(x)
y=float(y)
if x%5==0 and y>x+0.5:
y= y-x-0.50
print '%0.2f'%y
else:
print '%0.2f'%y
Just check your python version before making the submission on the submission page.
Select: Python(cpython 2.7.13)