#include <iostream>
int main()
{
    int N;
    std::cin >> N;
    if (N == 3) { return std::cout << "2 3 25" << std::endl, 0; }
    std::cout << "2 4 3 9", N -= 4;
    for (int i = 1; i <= 4999 and N >= 2; i++, N -= 2) { std::cout << " " << 6 * i + 2 << " " << 6 * i + 4; }
    for (int i = 1; i <= 2499 and N >= 2; i++, N -= 2) { std::cout << " " << 12 * i + 3 << " " << 12 * i + 9; }
    for (int i = 1; i <= 5000 and N > 0; i++, N--) { std::cout << " " << 6 * i; }
    std::cout << std::endl;
    return 0;
}
