#abc219a. A - AtCoder Quiz 2

A - AtCoder Quiz 2

Score : 100100 points

问题描述

在AtCoder王国中,存在一项竞技编程能力的标准测试。

考生将获得一个介于100100分之间的分数,并根据该分数获得相应的排名,如下所示:

  • 对于不低于00但小于4040的分数,评为“新手”;
  • 对于不低于4040但小于7070的分数,评为“中级”;
  • 对于不低于7070但小于9090的分数,评为“高级”;
  • 对于不低于9090的分数,评为“专家”。

高桥参加了这次测试并获得了XX分。

请找出晋升到上一排名所需的最少额外分数。然而,如果他的当前排名已经是“专家”,则输出expert,因为没有比“专家”更高的排名了。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

In the Kingdom of AtCoder, there is a standardized test of competitive programming proficiency.

An examinee will get a score out of 100100 and obtain a rank according to the score, as follows:

  • Novice, for a score not less than 00 but less than 4040;
  • Intermediate, for a score not less than 4040 but less than 7070;
  • Advanced, for a score not less than 7070 but less than 9090;
  • Expert, for a score not less than 9090.

Takahashi took this test and got XX 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

  • 0X1000 \leq X \leq 100
  • XX is an integer.

Input

Input is given from Standard Input in the following format:

XX

Output

Print the answer.

Sample Input 1

56

Sample Output 1

14

He got 5656 points and was certified as Intermediate. In order to reach the next rank of Advanced, he needs at least 1414 more points.

Sample Input 2

32

Sample Output 2

8

Sample Input 3

0

Sample Output 3

40

Sample Input 4

100

Sample Output 4

expert

He got full points and was certified as Expert. There is no rank higher than that, so print expert.

update @ 2024/3/10 09:40:15