program main
  implicit none
  integer(8),parameter::M=1000000007
  integer(8) h,w,a,b,i,asize
  integer(8),allocatable::fact(:),invf(:)
  integer(16)::i16=0

  read*,h,w,a,b
  asize=h+w
  allocate(fact(asize+1),invf(asize+1))

  fact(1:2)=1
  do i=1,asize
     fact(i+1)=mod(fact(i)*i,M)
  enddo
  invf(asize+1)=powmod(fact(asize+1))
  do i=asize,1,-1
     invf(i)=mod(invf(i+1)*i,M)
  enddo
  
  print*,mod(dot_product(&
       i16+mod(fact(h-a+b:h-a+w-1)*invf(b+1:w),M),mod(fact(w-b+a-1:a:-1)*invf(w-b:1:-1),M))*mod(invf(h-a)*invf(a),M),M)

  !end program main
contains
  function powmod(t) result(r)
    integer(8),intent(in)::t
    integer(8)x,i,r
    i=M-2
    x=t
    r=1
    do
       if ( i .eq. 0 ) exit
       if ( iand(i,1).eq.1 )then
          r=mod(r*x,M)
       endif
       x=mod(x*x,M)
       i=ishft(i,-1)
    end do
  end function powmod
end program main