N = int(input()) a = 0 for k in range(32): if N & (1 << k): a += 1 << k print(a, a, a)