Restaurant

AtCoder
IDabc055_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
20
Output #1
15800

So far, Snuke has paid $16000$ yen, and the restaurant has paid back $200$ yen. Thus, the answer is $15800$.
Input #2
60
Output #2
47200

Snuke has paid $48000$ yen for $60$ meals, and the restaurant has paid back $800$ yen.
API Response (JSON)
{
  "problem": {
    "name": "Restaurant",
    "description": {
      "content": "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 ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc055_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Snuke has a favorite restaurant.\nThe 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 ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments