# https://beta.atcoder.jp/contests/abc101/tasks/arc099_b
# D - Snuke Numbers

# D_Snuke_Numbers.py

K = int(input())


c = 0
while c != K:
    for i in range(M):
        str_i = str(i)
        keta = len(str_i) -1
        for n in range(1, 10):
            if i == 10 ** (keta -1):
                print(i)
                c += 1
