N = int(input()) A = N a = str(bin(N))[::-1] i = 0 while a[i]==0: i += 1 B = 2**i C = A^B if C==0: print(-1,-1,-1) else: print(A,B,C)