import std.stdio, std.conv, std.math, std.string, std.range, std.array,
       std.algorithm;

long s(long n)
{
    long s;
    while(n > 0)
    {
        s += n % 10;
        n /= 10;
    }
    return s;
}

void main(){
    auto K = readln().strip().to!int();

    long step = 10^^0;

    double bef = 1.0;
    long befoki = 1;
    long i = 2;
    for (long c = 0; c < K;) {
        auto ev = i.to!double() / s(i);

        if(bef <= ev) {
            writeln(i-1);
            c++;
            step = i - befoki;
            befoki = i;
        }

        bef = ev;
        i += step;
    }
}
