k = int(input())
x = 1
for i in range(8):
    if (not k):
        break
    print(x)
    x += 1
    k -= 1
for i in range(9):
    if (not k):
        break
    print(x)
    x += 10
    k -= 1
p = 19
h = 10**2
while (k):
    for i in range(p):
        if (not k):
            break
        print(x)
        x += h
        k -= 1
    p += 9
    h *= 10
