AtCoder Quiz 2

AtCoder
IDabc219_a
Time2000ms
Memory256MB
Difficulty
In the Kingdom of AtCoder, there is a standardized test of competitive programming proficiency. An examinee will get a score out of $100$ and obtain a **rank** according to the score, as follows: * Novice, for a score not less than $0$ but less than $40$; * Intermediate, for a score not less than $40$ but less than $70$; * Advanced, for a score not less than $70$ but less than $90$; * Expert, for a score not less than $90$. Takahashi took this test and got $X$ points. Find the minimum number of extra points needed to go up one rank higher. If, however, his rank was Expert, print `expert`, as there is no higher rank than that. ## Constraints * $0 \leq X \leq 100$ * $X$ is an integer. ## Input Input is given from Standard Input in the following format: $X$ [samples]
Samples
Input #1
56
Output #1
14

He got $56$ points and was certified as Intermediate. In order to reach the next rank of Advanced, he needs at least $14$ more points.
Input #2
32
Output #2
8
Input #3
0
Output #3
40
Input #4
100
Output #4
expert

He got full points and was certified as Expert. There is no rank higher than that, so print `expert`.
API Response (JSON)
{
  "problem": {
    "name": "AtCoder Quiz 2",
    "description": {
      "content": "In the Kingdom of AtCoder, there is a standardized test of competitive programming proficiency. An examinee will get a score out of $100$ and obtain a **rank** according to the score, as follows: *  ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc219_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "In the Kingdom of AtCoder, there is a standardized test of competitive programming proficiency.\nAn examinee will get a score out of $100$ and obtain a **rank** according to the score, as follows:\n\n*  ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments