#include using namespace std; int main() { int n; cin >> n; int a, b, c; a = b = c = 0; bool fst = true; for (int i = 0; i <= 30; i++) { int mask = 1 << i; if (n & mask) { if (fst) { a |= mask; b |= mask; fst = false; } else { a |= mask; c |= mask; } } } if (min(a, min(b, c)) > 0) cout << a << " " << b << " " << c << endl; else cout << "-1 -1 -1" << endl; return 0; }