#include using namespace std; using ll=long long; int main(){ ll N,X,Y; cin>>N>>X>>Y; if(X==Y){ cout<<0<__builtin_popcount(Y)){ cout<<"-1"<0){ S.push_back('0'+Y%2); Y/=2; } reverse(S.begin(),S.end()); vector AN; AN.push_back(N); ll k=0; for(int j=1;j