#include using namespace std; 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){ for(int i = 0; i < n / 2; i++) cout << i * 2 + 2 << " "; cout << endl; return 0; } cout << "3 6 2 4 "; for(int i = 3; i < n / 2; i++) cout << i * 2 + 2 << " "; cout << endl; }