#   AtCoder abc055 a



#   入力

n = int(eval(input()))



#   処理

total_pay = n * 800

total_back = (n // 15) * 200

balance = total_pay - total_back

#   出力

print(balance)



#   AtCoder abc055 a



#   入力

n = int(eval(input()))



#   処理

# total_pay = n * 800

# total_back = (n // 15) * 200

# balance = total_pay - total_back

#   出力

print(((n * 800) - ((n // 15) * 200)))



#   AtCoder abc055 a
#   入力
n = int(eval(input()))
#   処理
total_pay = n * 800
total_back = (n // 15) * 200
balance = total_pay - total_back
#   出力
print(balance)

#   AtCoder abc055 a
#   入力
n = int(eval(input()))
#   処理
# total_pay = n * 800
# total_back = (n // 15) * 200
# balance = total_pay - total_back
#   出力
print(((n * 800) - ((n // 15) * 200)))

-total_pay = n * 800 -total_back = (n // 15) * 200 -balance = total_pay - total_back +# total_pay = n * 800 +# total_back = (n // 15) * 200 +# balance = total_pay - total_back -print(balance) +print(((n * 800) - ((n // 15) * 200)))