K=int(input())
c=1
while K and c<60:
    print(c%10,c//10*'9',sep='')
    c+=1+(c%10==9)
    K-=1
c=10
while K and c<50:
    print(c,'9'*5,sep='')
    K-=1
    c+=1
c=65
while K and c<60:
    print(c%10,c//10*'9',sep='')
    c+=1+(c%10==9)
    K-=1