#define _LIBCPP_DEBUG 0 #include using namespace std; using ll = long long; using Graph = vector>; template bool chmin(T &a, T b) {if(a>b){a=b;return 1;}return 0;} template bool chmax(T &a, T b) {if(a> n; bitset<32> bit(n); ll count = 0; for (ll i = 0; i < 31; i++){ if (bit.test(i)){ count++; } } if (count <= 1){ cout << -1 << " " << -1 << " " << -1 << endl; return 0; } ll a = 0,b = 0,c = 0; ll t = 1; bool x = true; for (ll i = 0; i < 31; i++){ if (bit.test(i)){ a += t; if (x) b += t; else c += t; x = !x; } t *= 2; } cout << a << " " << b << " " << c << endl; }