int main() {
    int n, m;
    scanf("%d %d", &n, &m);
    int sum = 1;
    for (int i = 1; i <= m; i++) {
        sum *= n - i + 1;
    }
    printf("%d", sum);
    return 0;
}