#include <cstdio> #include <cstring> #include <iostream> #include <string> #include <cmath> #include <bitset> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <algorithm> #include <complex> #include <unordered_map> #include <unordered_set> #include <random> #include <cassert> #include <fstream> #include <utility> #include <functional> #include <time.h> #include <stack> #include <array> #include <list> #include <atcoder/all> #define popcount __builtin_popcount using namespace std; using namespace atcoder; typedef long long ll; typedef pair<int, int> P; 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+1)*2; if(i<n/2-1) cout<<" "; } cout<<endl; }else{ cout<<3<<" "<<6; for(int i=1; i<=n/2; i++){ if(i==3) continue; cout<<" "<<i*2; } cout<<endl; } return 0; }