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 if (N == 6) {
        writeln("3 4 5 8 10");
    } else {
        int[] r;
        int i, n = 2, m = 3;
        r.length = N;
        while (i < N && n <= 30000) {
            r[i++] = n;
            n += 2;
        }
        if (N == i) --i;
        if ((N-i)%2 != 0) --i;
        while (i%3 != 0) i -= 2;
        while (i < N) {
            r[i++] = m;
            m += 6;
        }
        writeln(r.map!(to!string).join(" "));
    }
}