k = int(input())

for i in range(k):
    j = i + 1
    n = i // 9
    l = (j % 9)
    
    if n == 0:
        print(j)
    else:
        if l != 0:
            print(int(''.join([str(l)] + ['9' for _ in range(n)])))
        else:
            print(int(''.join(['9' for _ in range(n + 1)])))