N = int(input()) A = 0 B = 0 C = N flag = False for i in range(30): if N >> i & 1: if flag: A += 1 << i else: B += 1 << i flag = True if A: print(A,B,C) else: print(-1,-1,-1)