n=int(input()) t=n&-n print('-1 '*3if~(n&n-1)else n,t,t^n)