N, = map(int, input().split())
d = 0
for c in bin(N):
    if c == "1":
        d += 1
if d == 1:
    print(-1, -1, -1)
else:
    print(N&-N, N-(N&-N), N)