import java.util.*; import java.io.*; class Main{ public static void main(String args[])throws IOException{ int n = readI(); int k=n,count=0; while(k>0){ if(k%2==1){ count++; } k=k>>1; } if(count==1){ pl("-1 -1 -1"); }else{ int a=0,b=0,c=n; int i=0,t=0; count/=2; while(n>0){ if(n%2==1){ if(count>t){ a=a|(1<