K=int(input())
count=0
digit=0
while (1):
    for i in range(1,10):
        out = int(str(i) + "9" * digit)
        print(out)
        count = count + 1
        if (count >= K) :
            break;
    digit = digit+1
    if (count >= K) :
        break;