N = int(input()) a = [0, 0, 0] for i in range(30): if N % 2 == 1: a[0] |= 1 << i a[1] |= 1 << i N //= 2 a = sorted(a) if a[0] == 0: print(-1, -1, -1) else: print(*a)