x = int(input())
if x <= 100:
    print(x * 0.5)
elif x <= 200:
    print(50 + (x - 100) * 0.6)
else:
    print(110 + (x - 200) * 0.75)