#abc304b. [abc304_b]Subscribers
[abc304_b]Subscribers
Problem Statement
You are given an integer .
Print an approximation of according to the following instructions.
- If is less than or equal to , print as it is.
- If is between and , inclusive, truncate the ones digit of and print the result.
- If is between and , inclusive, truncate the tens digit and all digits below it of and print the result.
- If is between and , inclusive, truncate the hundreds digit and all digits below it of and print the result.
- If is between and , inclusive, truncate the thousands digit and all digits below it of and print the result.
- If is between and , inclusive, truncate the ten-thousands digit and all digits below it of and print the result.
- If is between and , inclusive, truncate the hundred-thousands digit and all digits below it of and print the result.
Constraints
- is an integer between and , inclusive.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
20230603
Sample Output 1
20200000
is between and (inclusive).
Therefore, truncate the ten-thousands digit and all digits below it, and print .
Sample Input 2
0
Sample Output 2
0
Sample Input 3
304
Sample Output 3
304
Sample Input 4
500600
Sample Output 4
500000