import sys N = int(input()) if bin(N).count('1') == 1: print(-1,-1,-1) sys.exit() A = N for i in range(len(bin(N))-2): if (N>>i)&1: B = 2**i break C = N^B print(A,B,C)