#include <bits/stdc++.h>
using namespace std;
int main(){
long long a,b,c,d,t[21][21];
for(int i=0;i<=20;i++){
for(int j=0;j<=20;j++){
t[i][j]=-1;
}
}
cin>>a>>b>>c>>d;
t[c-1][d-2]=t[c-2][d-1]=t[c+1][d-2]=t[c+2][d-1]=0;
t[c-1][d+2]=t[c-2][d+1]=t[c+1][d+2]=t[c+2][d+1]=0;
t[c][d]=0;
for(int i=0;i<=a;i++)
for(int j=0;j<=b;j++){
if(t[i][j]!=0){
if(i==0||j==0){
t[i][j]=1;
}
else
t[i][j]=t[i-1][j]+t[i][j-1];
}
}
cout<<t[a][b];
return 0;
}