K=int(input().strip())

ct=0
for i in range(1,10):
    print(i)
    ct+=1
    if ct==K:
        break
nines=1
while ct<K:
    ketact=9+10*(nines-1)
    start=nines-1
    for i in range(start,ketact+1):
        print(str(i).replace("0","")+"9"*nines)
        ct+=1
        if ct==K:
            break
    nines+=1