import sys input = sys.stdin.readline A = [1, 2, 3, 4, 6, 8, 16, 12, 24, 32] print(len(A)) print(*A)