K = int(input())
a = []

for i in range(1, 10*15):
    temp = str()
    while i > 0:
        if i > 8:
            temp = temp + '9'
            i += -9
        else:
            temp = temp + str(i)
            i = 0
    ans = temp[::-1]
    a.append(int(ans))

ans = []

for i in range(len(a)):
    for j in range(i + 1, len(a)):
        if a[i] / (i+1) > a[j] / (j+1):
            break
    else:
        ans.append(a[i])
    if len(ans) == K:
        break

for i in ans:
    print(i)