#include using namespace std; typedef long long ll; const ll mod = 1000000007; #define rep(i,n) for(int i=0;i=0;i--) struct perm { private: int sz; vector p, invp; public: perm(int n) { sz = n+1; p.resize(sz), invp.resize(sz); p[0] = 1; rep1(i, sz - 1) { p[i] = p[i - 1] * i%mod; } invp[sz - 1] = 1; ll cop = mod - 2, x = p[sz-1]; while (cop) { if (cop % 2)invp[sz - 1] = invp[sz - 1] * x%mod; cop >>= 1; x = x * x % mod; } per(i, sz - 1) { invp[i] = invp[i + 1] * (i + 1) % mod; } } ll comb(ll x, ll y) { if (x < y || y < 0)return 0; ll ret = p[x]; (ret *= invp[y]) %= mod; (ret *= invp[x - y]) %= mod; return ret; } ll combP(ll x, ll y) { if (x < y || y < 0)return 0; return p[x] * invp[x - y] % mod; } }; int main() { ll n, m; cin >> n >> m; perm p(n-1+m); ll d1, d2; cin >> d1 >> d2; //左端を消し、a1