A=[1,2,4,8,16,31,62,124,248,496] print(len(A)) print(*A)