def yukicoder1298(i): C = i Ch = bin(i)[2:] # print(Ch, Ch.count('1')) if Ch.count('1') > 1: j = 1 while True: if Ch[-j] == '1': break j += 1 B = 2 ** (j - 1) A = C ^ B print(A, B, C) else: print(-1, -1, -1) i = int(input()) yukicoder1298(i)