import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int a = 0; int b = 0; int c = 0; int cnt = 0; for (int i = 0; i < 31; i++) { if ((n >> i & 1) == 1) { cnt++; if (cnt == 1) { a += 1 << i; b += 1 << i; } else if (cnt == 2) { a += 1 << i; c += 1 << i; } else { a += 1 << i; b += 1 << i; c += 1 << i; } } } if ((a ^ b ^ c) != 0) { System.out.println("-1 -1 -1"); } else { System.out.println(a + " " + b + " " + c); } } }