<filename>problem/10000~19999/11051/11051.py3.py
import math
f=math.factorial
a,b=map(int,input().split())
print(f(a)//f(b)//f(a-b)%10007)
<filename>problem/10000~19999/11051/11051.py3.py
import math
f=math.factorial
a,b=map(int,input().split())
print(f(a)//f(b)//f(a-b)%10007)