K = int(input())

a = (K - 1) // 9 
b = K % 9

for i in range(a):
    for j in range(1, 10):
        print(int(str(j) + '9' * i))
        
if b != 0:
    for j in range(1, b + 1):
        print(int(str(j) + '9' * a))
        