102190: [AtCoder]ABC219 A - AtCoder Quiz 2

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

Description

Score : $100$ points

Problem Statement

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$

Output

Print the answer.


Sample Input 1

56

Sample 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.


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.

Input

题意翻译

输入一个小于 $100$ 的非负整数 $x$ ,按如下情况输出: 如果 $x$ 小于 $40$ 输出 $40-x$ 的值; 如果 $x$ 不小于 $40$ 且小于 $70$ 输出 $70-x$ 的值; 如果 $x$ 不小于 $70$ 且小于 $90$ 输出 $90-x$ 的值; 如果 $x$ 不小于 $90$ 输出 expert 。

Output

分数:$100$分

问题描述

在AtCoder王国,有一个标准化的编程竞技能力测试。

应试者将得到一个$100$分之内的分数,并根据分数获得一个排名,如下所示:

  • 新手,分数不小于$0$但小于$40$;
  • 中级,分数不小于$40$但小于$70$;
  • 高级,分数不小于$70$但小于$90$;
  • 专家,分数不小于$90$。

高桥君参加了这次考试,得到了$X$分。

找出提升一个排名所需要的最少额外分数。然而,如果他的排名是专家,则打印expert,因为没有比这更高的排名了。

约束

  • $0 \leq X \leq 100$
  • $X$是一个整数。

输入

输入从标准输入以以下格式给出:

$X$

输出

打印答案。


样例输入 1

56

样例输出 1

14

他得到了$56$分,并被评为中级。为了达到下一个高级排名,他至少需要再得到$14$分。


样例输入 2

32

样例输出 2

8

样例输入 3

0

样例输出 3

40

样例输入 4

100

样例输出 4

expert

他得到了满分,并被评为专家。没有比这更高的排名了,所以打印expert

加入题单

上一题 下一题 算法标签: