N = int(input()) NBIT = N cnt = 0 while NBIT: if NBIT & 1 == 1: cnt+=1 NBIT >>= 1 if cnt>=2: B = '1'+'0'*(len(format(N,'b'))-1) B = int(B,2) print(N,B,N-B) else: print(-1,-1,-1)