n=int(input()) if n==1: print(-1,-1,-1,sep=" ") elif n%2!=0: print(n,n-1,1,sep=" ") else: lst=[2**i for i in range(1,31)] if n in lst: print(-1,-1,-1,sep=" ") else: for i in range(n): if n>>i&1: t=i break n2=n^(1<