N=int(input()) ok=[] for i in range(2,31): now=2**i-1 ok.append(now) if N in ok: print(1,N-1,N) else: print(-1,-1,-1)