N = int(input())
if bin(N).count('1') <= 1:
    print(-1, -1, -1)
    exit()
i = 0
while not (N >> i) & 1:
    i += 1
print(N, 1 << i, N - (1 << i))