k = int(input())
idx = 0
if k< 10:
    for i in range(1,k+1):
        print(i)
else:
    for i in range(1,10):
        print(i)
    idx = 9
    power = 1
    flag=True
    while flag:
        for i in range(1,10):
            if idx >=k:
                flag = False
                break
            print(str(i)+str(10**power-1))
            idx+=1
        power+=1