#include <bits/stdc++.h>
using namespace std;
bool g[21][21];
int ans,m,n;
void dfs(int x,int y)
{
if(g[x][y]==1)
return;
if(x==m&&y==n)
{
ans++;
return;
}
dfs(x+1,y);
dfs(x,y+1);
}
int main()
{
int x2,y2;
cin>>n>>m>>x2>>y2;
x2++;
y2++;
g[x2][y2]=1;
if(x2>1 && y2!=0)g[x2-2][y2-1]=1;
if(x2<19 && y2!=0)g[x2+2][y2-1]=1;
if(x2>1 && y2!=20)g[x2-2][y2+1]=1;
if(x2<19 && y2!=20)g[x2+2][y2+1]=1;
if(x2!=0 && y2>1)g[x2-1][y2-2]=1;
if(x2!=0 && y2<19)g[x2-1][y2+2]=1;
if(x2!=20 && y2>1)g[x2+1][y2-2]=1;
if(x2!=20 && y2<19)g[x2+1][y2+2]=1;
dfs(1,1);
printf("%d ",ans);
}