#include <iostream>
using namespace std;
int f( int m, int n) { // функция с её аргументами
if (m == 0 || m == n ) return 1;
if (m < n) return f(m - 1, n - 1) + f(m, n - 1);
}
int main() {
int n, m, d;
cin >> n >> m;
d = f(m, n); //вызов функции
cout << d;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgZiggaW50IG0sIGludCBuKSB7IC8vINGE0YPQvdC60YbQuNGPINGBINC10ZEg0LDRgNCz0YPQvNC10L3RgtCw0LzQuAoJaWYgKG0gPT0gMCB8fCBtID09IG4gKSByZXR1cm4gMTsKCWlmIChtIDwgbikgcmV0dXJuIGYobSAtIDEsIG4gLSAxKSArIGYobSwgbiAtIDEpOwp9CmludCBtYWluKCkgewoJaW50IG4sIG0sIGQ7CgljaW4gPj4gbiA+PiBtOwoJZCA9IGYobSwgbik7IC8v0LLRi9C30L7QsiDRhNGD0L3QutGG0LjQuAoJY291dCA8PCBkOwoJcmV0dXJuIDA7Cn0=