#include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; int main(){ int N; cin >> N; vector v{1}; REP(i,2,N+1){ ll x = v[v.size()-1] * 2; v.push_back(x); } rep(i,v.size()){ if(i>0) cout << " "; cout << v[i]; } cout << endl; return 0; }