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