#include #include using namespace std; using namespace atcoder; using mint = modint1000000007; using ll = long long; const int MX = 2000010; mint f[MX],inv[MX],fi[MX]; constexpr ll mod = 1000000007; void solve(){ inv[1] = 1; for(int i=2;i> n >> m >> d1 >> d2; solve(); mint ans = 0; for(int i=0;i