package main
import "fmt"
func combi(n int, r int) int {
return facto(n) / (facto(n-r)*facto(r))
}
func facto (n int) int {
if (n>0){
return n*facto(n-1)
}else {
return 1
}
}
func main(){
var a,b int
fmt.Scanf("%d %d",&a,&b)
fmt.Println(combi(a,b))
}