N = int(input()) S = bin(N)[2:] if S.count('1') < 2: print(-1,-1,-1) else: i = S[::-1].index('1') A = int('1' + '0' * i, 2) B = N & ~A print(A, B, N)