N = int(input()) assert 1 <= N <= 2 ** 30 if N == N & (-N): print(-1, -1, -1) else: print(N, N ^ (-N), N ^ (N & (-N)))