#include <algorithm>
#include <iostream>
using namespace std;


const int MAX_N = 105;

int main() {
    for (int i = 0; i <= 20; i += 1) {
        cout << (1 << i) << ' ';
    }
	return 0;
}