K = int(input())
if K <= 9:
    for i in range(1,K+1): print(i)
else:
    for i in range(1,10): print(i)
    K-=9    
    cnt = 1
    while 1:
        ret = ""
        for i in range(cnt):
            ret += "9"
        for i in range(1,10):
            print(str(i) + ret)
            K-=1
            if K==0: break
        cnt += 1
        if K==0: break