int n, a, b, c; int main(void) { scanf("%d", &n); if(n == (n & -n)) printf("-1 -1 -1\n"); else{ a = n, b = n & -n, c = a ^ b; printf("%d %d %d\n", a, b, c); } return 0; }