#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int C(int m, int n)
{
if (n < 0)
return 0;
else if (n == 0)
return 1;
else if (n == 1)
return m;
else if (m < (2 * n))
{
return C(m, (m - n));
}
else
return C((m - 1), (n - 1)) + C((m - 1), n);
}
int main()
{
int m, n;
scanf("%d%d", &m, &n);
int num = C(m, n);
printf("%d", num);
return 0;
}