#include using namespace std; using ll = long long; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) void solve() { ll n; cin >> n; if(n == 1) { cout << 1 << endl; } else if(n == 2) { cout << 2 << endl; } else if(n == 3) { cout << -1 << endl; } else if(n == 4) { cout << 2 << " " << 4 << endl; } else if(n == 5) { cout << -1 << endl; } else if(n % 2 == 0) { for(ll i = 2; i <= n; i += 2) cout << i << (i == n ? "\n" : " "); } else if(n % 2 == 1) { cout << 3 << " " << 6 << " "; for(ll i = 2; i <= n-1; i += 2) if(i != 6) cout << i << (i == n-1 ? "\n" : " "); } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); solve(); return 0; }