N = int(input()) b = bin(N)[2:] cnt = b.count("1") if cnt<=1: print(-1, -1, -1) else: A = [] B = [] flag = 0 for i in range(len(b)): if b[i]=="1": if flag==0: A.append("1") B.append("0") flag = 1 else: B.append("1") A.append("0") else: A.append("0") B.append("0") A = int("".join(A), 2) B = int("".join(B), 2) C = N print(A, B, C)