N = int(input()) c = 0 t = N while t != 0: c += 1 t >>= 1 A = 1 << c B = N ^ A C = N if A == B: print(-1, -1, -1) else: print(A, B, C)