Find the smallest number whose digits sum up to n.
The first line contains a natural number not greater than 50.
A single line containing the solution to the problem.
5
10
19
18
99
Login to be able to submit.