#include using namespace std; #define ll long long #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define Pr pair #define Tp tuple using Graph = vector>; ll mod = 998244353; int main() { ll N; cin >> N; ll ans[(N+1)/2]; if(N==1||N==2){ cout << 1 << endl; } else if(N==3||N==5){ cout << -1 << endl; } else if(N==4){ cout << 2 << " " << 4 << endl; } else{ ans[0] = 3; ans[1] = 6; ll k = 2; rep(i,(N+1)/2-2){ ans[i+2] = k; k += 2; if(k==6) k += 2; } rep(i,(N+1)/2){ cout << ans[i] << " "; } cout << endl; } //cout << ans << endl; }