cost = int(input())
if cost > 400 and cost < 600:
print(cost/100*5)
elif 1000 > cost > 600:
print(cost/100*10)
cost = int(input())
if cost > 400 and cost < 600:
print(cost/100*5)
elif 1000 > cost > 600:
print(cost/100*10)