#include <iostream>
using namespace std;
int Scor[11][11];
int scor(int n, int m) {
if(Scor[n][m] == 0) {
if(n == 0 || m == 0)
Scor[n][m] = 1;
else
Scor[n][m] = scor(n - 1, m) + scor(n, m - 1);
}
return Scor[n][m];
}
int main() {
int n, m;
cin >> n >> m;
cout << scor(n, m);
return 0;
}