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

ulong N = 17;

void main()
{
    wchar[][] ret;
    wchar[] i = ['1'];

    while (i.length <= N) {
        ret ~= i;
        if (i[0] == '9') {
            i = "1" ~ i;
        } else {
            i = [cast(wchar)(i[0] + 1)] ~ i[1..$];
        }
    }

    auto K = readln.chomp.to!int;
    foreach (k; 0..K) writeln(ret[k]);
}