cho.sh
Notes
Loading...

Concatenating Numbers 1

Time limit

0.15s

Memory limit

128 MB

Problem

Write the integers from 1 through N in order without spaces. This creates one long number.

1234567891011121314151617181920212223...

Write a program that determines how many digits this number has.

Input

The first line contains an integer N. (1 <= N <= 100,000,000)

Output

Print the number of digits in the constructed number.