#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; if(n==1){ cout<<-1< ans(n*3); rep(i,n){ ans[i+n] = i+1; } long long s0 = 0,s1 = 0; rep(i,n){ long long x = n*3 - i*2; long long y = x-1; swap(x,y); if(s0>=s1)swap(x,y); ans[n-1-i] = y; ans[n*3-1-i] = x; s0 += y * (n-i); s1 += x * (n-i); } if(s0