#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; long long MOD = 1000000007; int main() { unsigned int N,X,A,B; cin >> N >> X >> A >> B; A = ( X/A )+( X%A ? 1 : 0 ); unsigned int a = 1<<(N-1); // cout << a << endl; B = (a-X)/B + ( ((1<