def popcount(x): s=set() cnt=0 while(x>0): if x%2: s.add(cnt) x//=2 cnt+=1 return s N=int(input()) s=popcount(N) if len(s)==1: print(-1,-1,-1) else: t=s.pop() print(N,1<