#include<stdio.h>
#include<string.h>

int k;

void sunke(){
    long i,j,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
    i = 0;
    j = 0;
    l = 9;
    m = 99;
    n = 999;
    o = 9999;
    p = 99999;
    q = 999999;
    r = 9999999;
    s = 99999999;
    t = 999999999;
    u = 9999999999;
    v = 99999999999;
    w = 999999999999;
    x = 9999999999999;
    y = 99999999999999;
    z = 999999999999999;
    while(i < k){
        if(i < 9){
            j++;
            printf("%ld\n", j);
        }else if(i >= 9 && i < 18){
            l += 10;
            printf("%ld\n", l);
        }else if(i >= 18 && i < 27){
            m += 100;
            printf("%ld\n", m);
        }else if(i >= 27 && i < 36){
            n += 1000;
            printf("%ld\n", n);
        }else if(i >= 36 && i < 45){
            o += 10000;
            printf("%ld\n", o);
        }else if(i >= 45 && i < 54){
            p += 100000;
            printf("%ld\n", p);
        }else if(i >= 54 && i < 63){
            q += 1000000;
            printf("%ld\n", q);
        }else if(i >= 63 && i < 72){
            r += 10000000;
            printf("%ld\n", r);
        }else if(i >= 72 && i < 81){
            s += 100000000;
            printf("%ld\n", s);
        }else if(i >= 81 && i < 90){
            t += 1000000000;
            printf("%ld\n", t);
        }else if(i >= 90 && i < 99){
            u += 10000000000;
            printf("%ld\n", u);
        }else if(i >= 99 && i < 108){
            v += 100000000000;
            printf("%ld\n", v);
        }else if(i >= 108 && i < 117){
            w += 1000000000000;
            printf("%ld\n", w);
        }else if(i >= 117 && i < 126){
            x += 10000000000000;
            printf("%ld\n", x);
        }else if(i >= 126 && i < 135){
            y += 100000000000000;
            printf("%ld\n", y);
        }
        if(i >= 135){
            printf("%ld\n", z);
        }
        i++;
    }
}

int main(void){
    scanf("%d", &k);
    while(k < 1){
        scanf("%d", &k);
        if(k > 0){
            break;
        }
    }
    sunke(k);
    printf("\n");
    return 0;
}