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