n = int(input()) if n == 1: print(-1, -1, -1) elif n % 2 == 0: b = bin(n)[2:][::-1] idx = [i for i in range(len(b)) if b[i] == "1"] if len(idx) == 1: print(-1, -1, -1) else: A = 1 << idx[1] print(A, n-A, n) else: count = bin(n).count("1") print(1, n-1, n)