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

void main()
{
    auto N = readln.chomp.to!int;
    if (N == 3) {
        writeln("2 5 63");
    } else if (N == 4) {
        writeln("2 5 20 63");
    } else {
        int[] r;
        int i, n = 2, m = 3;
        r.length = N;
        while (N >= 5 && n <= 30000) {
            foreach (_; 0..3) {
                r[i++] = n;
                n += 2;
            }
            N -= 3;
        }
        while (N) {
            r[i++] = m;
            m += 6;
            --N;
        }
        writeln(r.map!(to!string).join(" "));
    }
}