N = int(input()) A = N p = 0 while True: if (N>>p)%2==1: B = 1<<p if A==B: print(-1,-1,-1) exit() break p += 1 C = A^B print(A,B,C)