#abc195c. [abc195_c]Comma
[abc195_c]Comma
Problem Statement
When Takahashi writes an integer, he uses a comma every third digit from the right. For example, is written as 1,234,567
, and is written as 777
.
How many commas will be used in total when he writes each integer from through once?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the total number of commas.
Sample Input 1
1010
Sample Output 1
11
No comma is used in writing or smaller numbers. One comma is used in writing each of the numbers from through .
Thus, commas are used in total.
Sample Input 2
27182818284590
Sample Output 2
107730272137364