题目描述
Problem Description
In the school that Takahashi attends, students who enrolled in the year the school was founded are called the $1$st generation, those who enrolled the following year are called the $2$nd generation, and so on.
That is, when (the year of enrollment $-$ the year the school was founded) $+ 1 = n$, the student is referred to as the $n$th generation.
Additionally, every student in Takahashi's school has an ID, and it is known that each ID always contains the number corresponding to their generation.
Given a student's ID as a string $S$, please determine which generation the student belongs to.
If two digits are consecutive in the string, they represent a two-digit number.
Input Format
The input is given from the standard input in the following format:
$S$
Output Format
The output consists of one line. When the student is the $n$th generation, output $n$ on the first line.
Sample Input and Output
Sample Input #1
chokudai55
Sample Output #1
55
Sample Input #2
cho9dai
Sample Output #2
9
Notes/Hints
- $S$ is composed of uppercase or lowercase alphabets, or digits.
- $S$ contains either one or two digits.
- If $S$ contains two digits, they are consecutive.
- The first digit in $S$ is not $0$.
- $3 \leq \lvert S \rvert \leq 10$
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分