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