/* author: Kite_kuma created: 2020.11.05 00:38:14 */ #include using namespace std; int main() { int N; cin >> N; if(__builtin_popcount(N) < 2) { cout << "-1 -1 -1\n"; return 0; } int A, B, C; A = B = C = 0; for(int i = 0; i < 31; i++) { int bit = 1 << i; if(N & bit) { A |= bit; (C ? B : C) |= bit; } } if(!C) A = B = C = -1; cout << A << " " << B << " " << C << endl; return 0; }