#include using namespace std; void solve() { int n; cin >> n; if (n == 1) { cout << "1\n"; } else if (n % 2 == 0) { for (int i = 2; i <= n; i += 2) cout << i << " "; cout << "\n"; } else if (n > 6) { cout << "3 6 2 4 "; for (int i = 8; i <= n; i += 2) cout << i << " "; cout << "\n"; } else { cout << "-1\n"; } } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; }