#include <stdio.h>
#include <math.h>

int main()
{
	printf("19\n");
	for (int i = 1; i <= 19; i++)
	{
		printf("%.0lf ", pow(2,i));
	}

	return 0;
}