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