#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    cin >> n;

    vector<int> a;
    vector<int> b;

    for (int i = 1; i <= n; i++) {
        if (i % 2 == 1) {
            a.push_back(i);
            b.push_back(i + 1);
        }
        else {
            a.push_back(i + 3);
            b.push_back(i + 4);
        }
    }


    for (int i = 0; i < n; i++) cout << a[i] << " ";
    cout << "\n";
    for (int i = 0; i < n; i++) cout << b[i] << " ";

    return 0;
}