N = int(input()) e = N & (-N) if e == N: print(-1, -1, -1) else: print(N^e, N, e)