#include using namespace std; int main() { int N; cin >> N; if(N%2 == 0) { vectorA(N),B(N); for(int i = 0; i < N; i++) { if(i < N/2) { A[i] = i*3; B[i] = A[i]+1; } else { A[i] = 10000-A[N-i-1]; B[i] = 10000-B[N-i-1]; } } vectorC = A; sort(C.begin(),C.end()); for(int i = 0; i < N; i++) { cout << A[i] << ((i+1 == N)?"\n":" "); } for(int i = 0; i < N; i++) { cout << B[i] << ((i+1 == N)?"\n":" "); } } else { assert(0); } }