#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); int n; cin >> n; if (n == 1) { cout << 1 << '\n'; } else if (n == 3 || n == 5) { cout << -1 << '\n'; } else if (n % 2 == 1) { cout << "3 6 2 4"; for (int i = 8; i <= n; i += 2) cout << ' ' << i; cout << '\n'; } else { for (int i = 2; i <= n; i += 2) cout << i << ' '; cout << '\n'; } return 0; }