#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll N;cin>>N; vector> vec(2*N-1,vector (0)); for(ll i=2*N-1;i>=N+1;i--) { for(ll j=2*N-1-i;j<2*N-1;j++) { vec[j].push_back(i); } } for(ll i=N;i>=3;i--) { for(ll j=0;j=1;j-=2) { vec[j].push_back((j+1)/2); vec[j-1].push_back((j+1)/2); } vec[0].push_back(1); cout<