a = [1,2,3,4,5,6,7,8,9,19,29,39,49,59,69,79,89,99]
b = set()
k = int(input())
for i in a:
    for s in range(0,k):
        t = str(i)+str(9)*s
        b.add(int(t))
s = sorted(b)
for i in s:
    print(i)