N = int(input()) x = N & -N if N ^ x == 0: print(-1,-1,-1) else: print(N,x,N^x)