実行時間制限: 2 sec / メモリ制限: 256 MB
配点 : 100 点
問題文
すぬけくんはレストランに通うのが好きです。
すぬけくん行きつけのレストランは何を食べても 1 食 800 円で、15 食食べる毎にその場で 200 円もらえます。
すぬけくんは今までで合計 N 食食べました。 今までに払った金額を x 円、レストランからもらった金額を y 円として、x-y を求めなさい。
制約
- 1 ≦ N ≦ 100
入力
入力は以下の形式で標準入力から与えられる。
N
出力
答えを出力せよ。
入力例 1
20
出力例 1
15800
すぬけくんは今までに 16000 円払っており、200 円もらっているので、答えは 15800 となります。
入力例 2
60
出力例 2
47200
すぬけくんは 60 食食べたので、48000 円払って 800 円もらいました。
Score : 100 points
Problem Statement
Snuke has a favorite restaurant.
The price of any meal served at the restaurant is 800 yen (the currency of Japan), and each time a customer orders 15 meals, the restaurant pays 200 yen back to the customer.
So far, Snuke has ordered N meals at the restaurant. Let the amount of money Snuke has paid to the restaurant be x yen, and let the amount of money the restaurant has paid back to Snuke be y yen. Find x-y.
Constraints
- 1 ≤ N ≤ 100
Input
The input is given from Standard Input in the following format:
N
Output
Print the answer.
Sample Input 1
20
Sample Output 1
15800
So far, Snuke has paid 16000 yen, and the restaurant has paid back 200 yen. Thus, the answer is 15800.
Sample Input 2
60
Sample Output 2
47200
Snuke has paid 48000 yen for 60 meals, and the restaurant has paid back 800 yen.