n = int(input())
ans = []
for i in range(0, 19):
    for j in range(10**i, 10**(i+1), 10**i):
        ans.append(j-1)
        if i == 0:
            continue
        for k in range(j, j+10**i, 10**(i-1)):
            if k >= 10 ** i * (i - 1):
                break
            ans.append(k-1)
ans = list(set(ans[1:]))
ans.sort()
for i in range(n):
    if ans[i] > 10 ** 15:
        break
    print(ans[i])
