n = int(input()) if bin(n)[2:].count("1") == 1: exit(print(-1, -1, -1)) b = bin(n)[2:] l = len(b) ans = 0 for i in range(l): if b[i] == "1": ans = 1 << (l - i - 1) break print(ans, n - ans, n)