from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N = int(input()) for i in range(30, -1, -1): a = N & (1 << i) if a == N: print(-1, -1, -1) return if a: print(a, N - a, N) return print(-1, -1, -1) main()