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