import java.util.*; public class Test10 { public static void main(String[] args){ Scanner sc=new Scanner(System.in); String line; line=sc.nextLine(); int c=Integer.parseInt(line); int n=0; for(int i=1;i<=c;i*=2){ n++; } int a=(int)Math.pow(2,n-1); int b=c%a; //System.out.println((b|c)+","+(a^b^c)); if(b==0){ System.out.println("-1 -1 -1"); }else{ System.out.println(a+" "+b+" "+c); } } }