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