#include using std::cin; using std::cout; int main() { int n; cin >> n; if (n % 2 == 0) { for (int i = 2; i <= n; i += 2) cout << i << " "; return 0; } if (n == 1) puts("1"); else if (n <= 5) puts("-1"); else { cout << "3 6 2 4 "; for (int i = 8; i <= n; i += 2) cout << i << " "; } return 0; }