#include using namespace std; int main(){ cout << "10" << endl; cout << "1 2 4 8 16 32 64 128 256 512" << endl; }