n = int(input()) a = n for b in range(1,2**10): for c in range(1,2**10): if a ^ b ^ c == 0: print (a,b,c) exit () print (-1,-1,-1)