//Problem c from mindcodingRound4
//"We are drowning in information and starved for knowledge."
#include <cassert>
#include <cmath>

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

#define int64 long long

const int inf = 0x3f3f3f3f;

int main() {
	ios::sync_with_stdio(false);
	int n; cin >> n;
	cout << 20 << '\n';
	for (int i = 0; i < 20; ++i) {
		cout << (1 << i) << ' ';
	}
	return 0;
}