//g++ 2.cpp -std=c++14 -I . #include using namespace std; #include using namespace atcoder; using ll = long long; using ld = long double; using vi = vector; using vvi = vector; using vll = vector; using vvll = vector; using vld = vector; using vvld = vector; #define fi first #define se second #define pb push_back #define all(a) a.begin(),a.end() #define rep(i,start,end) for(ll i=start;i<(ll)(end);i++) #define per(i,start,end) for(ll i=start;i>=(ll)(end);i--) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll x; cin>>x; rep(i,0,70){ ll check=(x^i); if(bitset<64>(check).count()==i&&check>0){ cout<