import java.math.BigInteger

val MOD = 1000000007L
val BMOD = BigInteger.valueOf(MOD)

fun main(args: Array<String>) {
    val (h, w, a, b) = readLine()!!.split(' ').map(String::toLong)
    var ans = 0L
    val n1 = h - a - 1 + b
    val n2 = w - b - 1 + a
    var k1 = b
    var k2 = a
    var c1 = c(n1, k1)
    var c2 = c(n2, k2)
    while (true) {
        ans = (ans + mult(c1, c2)) % MOD
        k1++; k2++
        if (k1 > n1 || k2 > n2) break
        c1 = div(mult(c1, n1 - k1 + 1), k1)
        c2 = div(mult(c2, n2 - k2 + 1), k2)
    }
    println(ans)
}

fun mult(a : Long, b : Long) = (a * b) % MOD
fun div(a : Long, b : Long) = mult(a, BigInteger.valueOf(b).modInverse(BMOD).toLong())

fun c(n : Long, k : Long) : Long {
    var ch = 1L
    var zn = 1L
    for (i in (n - k + 1)..n) ch = mult(ch, i)
    for (i in 1..k) zn = mult(zn, i)
    return div(ch, zn)
}
