import math
k = int(input())
l = math.ceil(k/9)-1
for i in range(l+1):
    if i == l:
        for j in range(1,k%9+1):
            print(int(str(j)+"9"*i))
    else:
        for j in range(1,10):
            print(int(str(j)+"9"*i))
