Find the smallest number that equals the sum of digits n.
The first line contains a natural number, n(1≤n≤1000).
The unique line contains the solution to the problem.
5
10
19
18
99
Login to be able to submit.