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