N = int(input()) a = N b = N & (-N) c = N ^ b if a == 0 or b == 0 or c == 0: print(-1, -1, -1) else: print(a, b, c)