@staticmethod
def a():
    n = int(sys.stdin.readline().rstrip())
    s = [(1 << i) for i in range(5) if ((n >> i) & 1)]
    print(len(s), *s, sep='\n')
@staticmethod
def a():
    n = int(sys.stdin.readline().rstrip())
    s = [(1 << i) for i in range(5) if ((n >> i) & 1)]
    print(len(s), *s, sep='\n')