Given a non-negative integer number n = 345. The sum of the digits of n is 3 + 4 + 5 = 12. The output is position 12. Given a non-negative integer number n = 12. The sum of the digits of n is 1 + 2 = 3. The output is position 3. Given a non-negative integer number n = 97. The sum of the digits of n is 9 + 7 = 16. The output is position 16.
[345] [12] [97]
12 3 16