#include<bits/stdc++.h>
using namespace std;
bool ma(int x,int y,int x0,int y0){
if(x0==x && y0==y) return true;
if(abs(x0-x)==1 && abs(y0-y)==2) return true;
if(abs(x0-x)==2 && abs(y0-y)==1) return true;
return false;
}
int main(){
int a[23][23]={},n,m,x,y;
cin>>n>>m>>x>>y;
for(int i=1;i<=n+1;i++){
for(int j=1;j<=m+1;j++){
if(i==1 && j==1) a[i][j]=1;
else if(ma(x+1,y+1,i,j)) a[i][j]=0;
else a[i][j]=a[i-1][j]+a[i][j-1];
}
}
cout<<a[n+1][m+1];
return 0;
}