N = int(input()) ans = [0, 0, 0] cnt = 0 for i in range(65): if (N >> i) & 1: ans[0] += 1 << i if cnt % 2: ans[1] += 1 << i else: ans[2] += 1 << i cnt += 1 print(*ans) if 0 not in ans else print(-1, -1, -1)