#include int main() { int N; std::cin >> N; int M = (N + 1) / 2; std::vector A(M); bool ok = true; if (N % 2 == 0) { for (int i = 0; i < M; ++i) { A[i] = 2 * (i + 1); } } else { if (N == 1) A[0] = 1; if (N == 3 or N == 5) ok = false; else { for (int i = 0; i < M - 1; ++i) A[i] = 2 * (i + 1); std::swap(A[2], A[M - 2]); A.back() = 3; } } if (ok) { for (int i = 0; i < M; ++i) { if (i) std::cout << " "; std::cout << A[i]; } std::cout << "\n"; } else { std::cout << -1 << "\n"; } return 0; }