program problemFolklore; var i: longInt; begin writeln( 20 ); write( 1 ); for i := 1 to 19 do write( ' ', 1 shl i ); writeln(); end.