#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); long long N,X,Y; cin >> N >> X >> Y; if(X == Y){cout << 0 << endl; return 0;} if(Y%2 == 0){cout << "-1" << endl; return 0;} int zero = 0; vector need; for(int i=N-1; i>=0; i--){ if((1LL<