#include<bits/stdc++.h> using namespace std; int main(){ int n=1,m=2; for (int i=0;i<30;i++){ cout<<n<<" "; n+=m; m*=2; } return 0; }