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