#SCCCIE000018. Số bài của ABC (New Generation ABC)
Số bài của ABC (New Generation ABC)
New Generation ABC
Source: AtCoder
Problem Statement
The number of problems in ABC changed over time: contests through had , through had , and through had . Find the number for contest .
Input
One line contains .
Output
Print the number of problems in the -th ABC.
Subtasks
- Subtask 1 (100%):
Examples
Example 1
Input
214
Output
8
Explanation
For the sample values 214, evaluating the conditions in the statement gives 8. Therefore the program prints the shown output.
Example 2
Input
1
Output
4
Explanation
For the sample values 1, evaluating the conditions in the statement gives 4. Therefore the program prints the shown output.
Example 3
Input
126
Output
6
Explanation
For the sample values 126, evaluating the conditions in the statement gives 6. Therefore the program prints the shown output.