#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; using namespace atcoder; typedef long long ll; typedef pair P; #define popcountll __builtin_popcountll int main() { ll x; cin>>x; for(int i=1; i<=61; i++){ ll n=(x^i); if(popcountll(n)==i){ cout<