N = int(eval(input()))

print((800*N-(N//15)*200))
# coding: utf-8



N = int(eval(input()))

ans = 800*N - N//15*200

print(ans)
N = int(eval(input()))
print((800 * N - (N // 15) * 200))

# coding: utf-8
N = int(eval(input()))
ans = 800 * N - N // 15 * 200
print(ans)

+# coding: utf-8 -print((800 * N - (N // 15) * 200)) +ans = 800 * N - N // 15 * 200 +print(ans)