#include<iostream>
using namespace std;
int n,m;
int cnt; //cnt不用初始化为0
void f(int x,int y)
{
if(x==n&&y==m) cnt++;
else
{
if(x<n) f(x+1,y);
if(y<m) f(x,y+1);
}
}
int main()
{
cin>>n>>m;
f(0,0);
cout<<cnt<<endl;
return 0;
}