k = int(input())

def digits(n):
    if n < 10:
        return n
    else:
        return n%10 + digits(int(n/10))

# 9まで
if k < 10:
    for i in range(k):
        print(i+1)
# 10から
else:
    print("1\n2\n3\n4\n5\n6\n7\n8\n9")
    n = 19
    i = 10
    while i <= k and n <=pow(10,15):
        if digits(n) > 9 and n%10==9:
            print(n)
            i += 1
        n += 10
