k = int(input())

for i in range(1, min(10,k+1)):
    print(i)

A = k // 9
B = k % 9
a = 1

if k >= 10:
    while a < A:
        print("\n".join(str(i)+"9"*a for i in range(1,10)))
        a += 1
    print("\n".join(str(i)+"9"*a for i in range(1,B)))