#include <iostream>
using namespace std;
int main() {
for (int i = 2; i <= 512; i *= 2) {
cout << i << "\n";
}
return 0;