#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,n) for(int i=0; i=b; --i) #define ALL(c) (c).begin(), (c).end() typedef long long ll; typedef vector VI; typedef vector VL; typedef vector VVI; typedef vector VVL; typedef pair P; typedef pair PL; int main(){ int k; cin >> k; VI ans; int m = (1 << k) - 1; set st; FOR(i,1,m) st.insert(i); ans.push_back(m); st.erase(m); REP(i,k){ int x = (1 << (k-1-i)); // cout<< x << endl; for (int y = x; y < m; y += x){ if (st.count(y)){ ans.push_back(y); st.erase(y); } } } for (int x : ans) printf("%d ", x); cout<< endl; return 0; }