atcoder#ABC304B. [ABC304B] Subscribers

[ABC304B] Subscribers

Score : 200200 points

Problem Statement

You are given an integer NN. Print an approximation of NN according to the following instructions.

  • If NN is less than or equal to 103110^3-1, print NN as it is.
  • If NN is between 10310^3 and 104110^4-1, inclusive, truncate the ones digit of NN and print the result.
  • If NN is between 10410^4 and 105110^5-1, inclusive, truncate the tens digit and all digits below it of NN and print the result.
  • If NN is between 10510^5 and 106110^6-1, inclusive, truncate the hundreds digit and all digits below it of NN and print the result.
  • If NN is between 10610^6 and 107110^7-1, inclusive, truncate the thousands digit and all digits below it of NN and print the result.
  • If NN is between 10710^7 and 108110^8-1, inclusive, truncate the ten-thousands digit and all digits below it of NN and print the result.
  • If NN is between 10810^8 and 109110^9-1, inclusive, truncate the hundred-thousands digit and all digits below it of NN and print the result.

Constraints

  • NN is an integer between 00 and 109110^9-1, inclusive.

Input

The input is given from Standard Input in the following format:

NN

Output

Print the answer.

20230603
20200000

2023060320230603 is between 10710^7 and 108110^8-1 (inclusive). Therefore, truncate the ten-thousands digit and all digits below it, and print 2020000020200000.

0
0
304
304
500600
500000