#SCCCIE000019. Điểm để lên hạng (AtCoder Quiz 2)
Điểm để lên hạng (AtCoder Quiz 2)
AtCoder Quiz 2
Source: AtCoder
Problem Statement
A test score ranges from to , with next-rank thresholds at , , and . At or above there is no higher rank. Given , find the minimum extra points needed for the next rank.
Input
One line contains .
Output
If , print the points needed to reach the next threshold; otherwise print expert.
Subtasks
- Subtask 1 (100%):
Examples
Example 1
Input
56
Output
14
Explanation
For the sample values 56, evaluating the conditions in the statement gives 14. Therefore the program prints the shown output.
Example 2
Input
32
Output
8
Explanation
For the sample values 32, evaluating the conditions in the statement gives 8. Therefore the program prints the shown output.
Example 3
Input
0
Output
40
Explanation
For the sample values 0, evaluating the conditions in the statement gives 40. Therefore the program prints the shown output.
Example 4
Input
100
Output
expert
Explanation
For the sample values 100, evaluating the conditions in the statement gives expert. Therefore the program prints the shown output.