N = int(input()) b, c = 0, 0 k = 0 for i in range(40): if (N >> i) & 1 == 1: if k % 2 == 0: b |= pow(2, i) else: c |= pow(2, i) k += 1 if b > 0 and c > 0: print(N, b, c) else: print(-1, -1, -1)