#include <iostream>

using namespace std;

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

    int l = 1, r = 2 * n - 1;

    for (int i = 0; i < n; ++i){
        if (i % 2 == 0){
            cout<<l<<' ';
            l+=2;
        }else{
            cout<<r<<' ';
            r-=2;
        }
    }

    cout<<endl;

    l = 2, r = 2 * n;

    for (int i = 0; i < n; ++i){
        if (i % 2 == 0){
            cout<<l<<' ';
            l+=2;
        }else{
            cout<<r<<' ';
            r-=2;
        }
    }



    return 0;
}