#include <bits/stdc++.h>
using namespace std;
long long a,b,n,m,dp[40][40],ma[40][40];
void work(long long x,long long y){
ma[x][y]=1;
ma[x-1][y-2]=1;
ma[x-2][y-1]=1;
ma[x-2][y+1]=1;
ma[x-1][y+2]=1;
ma[x+1][y-2]=1;
ma[x+2][y-1]=1;
ma[x+2][y+1]=1;
ma[x+1][y+2]=1;
}
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
cin >> n >> m >> a >> b;
dp[1][1]=1;
n++;m++;
a++;b++;
work(a,b);
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
if((i!=1||j!=1)&&!ma[i][j]) dp[i][j]=dp[i-1][j]+dp[i][j-1];
}
}
cout << dp[n][m] << '\n';
return 0;
}