N = int(input()) assert 1 <= N <= (1 << 30) if N == N & (-N): print(-1, -1, -1) else: A = B = N A ^= (N & -N) C = N & (-N) print(A, B, C) assert A ^ B ^ C == 0 assert A | B == B | C == C | A == N