#include "bits/stdc++.h" #define int long long using namespace std; using ll = long long; using P = pair; const ll INF = (1LL << 61); ll mod = 1000000007; signed main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; if (N == 1 || N == 2) { cout << 1 << endl; return 0; } else if (N == 3) { cout << -1 << endl; return 0; } else if (N == 4) { cout << 2 << " " << 4 << endl; return 0; } else if (N == 5) { cout << -1 << endl; return 0; } vectorans; for (int i = 2; i <= N; i += 2) { if(i != 6)ans.push_back(i); } ans.push_back(6); if (N % 2 == 1) { ans.push_back(3); } for (int i = 0; i < (N + 1) / 2; i++) { cout << ans[i] << " "; } return 0; }