atcoder#ABC304B. [ABC304B] Subscribers
[ABC304B] Subscribers
Score : points
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.
20230603
20200000
is between and (inclusive). Therefore, truncate the ten-thousands digit and all digits below it, and print .
0
0
304
304
500600
500000