N = int(input()) NBIT = N cnt = 0 A = '' B = '' while NBIT: if NBIT & 1 == 1: cnt+=1 if cnt % 2==0: A += '1' B += '0' else: A += '0' B += '1' else: A += '0' B += '0' NBIT >>= 1 if cnt%2==1: print(-1,-1,-1) else: print(N,int(A[::-1],2) ,int(B[::-1],2))