K=int(input().strip())
nines=0
ct=0
while ct<K:
    ketact=9 if nines in (0,1) else 18
    for i in range(1,ketact+1):
        print(str(i)+"9"*nines)
        ct+=1
        if ct==K:
            break
    nines+=1