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

auto N = 17;

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

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

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