from sys import stdin

K = int(stdin.readline().rstrip())

limit = K - 9
count = 0
num = 10

if K <= 9:
    for i in range(1, K+1):
        print(i)
else:
    for i in range(1, K):
        print(i)
    while True:
        tmp = str(num)[::-1]
        if int(tmp[0]) == 9:
            print(num)
            count += 1
        num += 1
        if limit == count:
            break
    
