def bit(n: int): res = [] while n != 0: res += [n % 2] n //= 2 return res n = int(input()) c = n a, b = 0, 0 flg = False for i, ci in enumerate(bit(c)): if ci != 0: if not flg: a = 2**i flg = True else: b += 2**i if min(a, b, c) == 0: a, b, c = -1, -1, -1 print(a, b, c)