100550: [AtCoder]ABC055 A - Restaurant

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

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.

Input

题意翻译

小紫喜欢去一家餐厅吃饭。 这家餐厅菜单上的所有菜品的价格都为800日元(日元为日本的一种货币,下同),而每位顾客每买满15样菜品,可以优惠200日元。 到目前为止,小紫已经在这家餐厅点了N份菜。不计优惠金额小紫将消费x日元,而小紫一共省了y日元。 你的任务是求出小紫实际支付的总金额x-y。 ## 输入格式 输入内容为一个数字N,表示小紫到目前为止共计吃饭的顿数。 ## 输出格式 输出为一行,表示小紫实际支付的总金额x-y ## 输入输出样例 ###### 测试数据1: 输入: 20 输出: 15800 ###### 测试数据2: 输入: 60 输出: 47200 ## 说明/提示 此题使用标准输入输出。 ###### 输入数据范围: 对于100%的数据,1<=N<=100 ###### 对于测试数据一的解释: 目前为止,小紫买了20份菜品,不计优惠金额小紫将付16000日元,而小紫买的菜品超过15样不超过2×15样,于是优惠金额为1×200=200日元,所以输出15800。 ###### 对于测试数据二的解释: 目前为止,小紫买了60份菜品,不计优惠金额小紫将付48000日元,而小紫买的菜品正好为4×15样,于是优惠金额为4×200=800日元,所以输出47200。

加入题单

上一题 下一题 算法标签: