#include #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef long long ll; int main() { int N; cin >> N; if (N % 2) { if (N == 1) { cout << 1 << endl; } else if (N == 3 || N == 5) { cout << -1 << endl; } else { cout << "3 6 2 4"; rep(i, N / 2 - 3) { cout << " " << i * 2 + 8; } cout << endl; } } else { rep(i, N / 2) { cout << i * 2 + 2; if (i == N / 2 - 1) cout << endl; else cout << " "; } } }