#include using namespace std; int main(){ int n;cin>>n; if(n ==3 || n == 5){ cout << -1 << endl; }else if(n >= 6){ int nw = 2; for(int i = 0; (n+1)/2-2 > i; i++){ cout << nw; if(i+1 != (n+1)/2-2)cout << " "; nw += 2; if(nw == 6)nw += 2; } cout << " " << 6 << " " << 3 << endl; }else if(n != 1){ int nw = 2; for(int i = 0; (n+1)/2 > i; i++){ cout << nw; if(i+1 != (n+1)/2)cout << " "; nw += 2; } cout << endl; }else if(n == 1){ cout << 1 << endl; } }