import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = getCount(n); if (count <= 1) { System.out.println("-1, -1, -1"); return; } int a = 1; while ((n & a) == 0) { a <<= 1; } System.out.println(a + " " + (n ^ a) + " " + n); } static int getCount(int x) { int count = 0; while (x > 0) { count += x % 2; x /= 2; } return count; } }