Score : $1300$ points
We will call a non-negative integer increasing if, for any two adjacent digits in its decimal representation, the digit to the right is greater than or equal to the digit to the left. For example, $1558$, $11$, $3$ and $0$ are all increasing; $10$ and $20170312$ are not.
Snuke has an integer $N$. Find the minimum number of increasing integers that can represent $N$ as their sum.
The input is given from Standard Input in the following format:
$N$
Print the minimum number of increasing integers that can represent $N$ as their sum.
80
2
One possible representation is $80 = 77 + 3$.
123456789
1
$123456789$ in itself is increasing, and thus it can be represented as the sum of one increasing integer.
20170312
4
7204647845201772120166980358816078279571541735614841625060678056933503
31