n = int(input()) x = 1 s = [] while x <= n: if n & x: n -= x s.append(x) x *= 2 if len(s) == 1: print(-1, -1, -1) else: print(s[0], n - s[0], n)