You are given a natural number . At each step, you can subtract one of its digits from this number.
What is the minimum number of steps to make the number equal to ?
A natural number is given (1 ≤ n ≤ 10^6).
Output the minimum number of steps.
Example 1
The optimal solution for the example is as follows: 27 → 20 → 18 → 10 → 9 → 0.