k = int(input())
z=1
n=1
while z<=k:
    a=1
    l=len(str(n))
    s = str(n)
    x = list(map(int, list(s)))
    while a<=l:
        if x[0]==1 and l>3:
            if l-a-1==0:
                print(n)
                a=a+100
                z=z+1
            elif n==19:
                print(19)
                a=a+100
                z=z+1
            elif x[l-a]==9:
                a=a+1
            else:
                a=a+100
        else:
            if a-l==0:
                print(n)
                a=a+100
                z=z+1
            elif n==19:
                print(19)
                a=a+100
                z=z+1
            elif x[l-a]==9:
                a=a+1
            else:
                a=a+100
    n=n+1