#include<iostream>
using namespace std;
int num;
int n,m;
int dfs(int x,int y)
{
if(x==n&&y==m) num++;
else
if(x<=n)
dfs(x+1,y);
if(y<=m)
dfs(x,y+1);
return num;
}
int main()
{
cin>>n>>m;
cout<<dfs(0,0)<<endl;
}