Skip to content
UPEEC

Binomial Coefficient

Medium#math#combinatorics· solved by 0 · time limit 2.0 s

Print (nk) mod (109+7)\binom{n}{k} \bmod (10^9+7) — the number of ways to choose kk items from nn.

Input

Two integers nn and kk.

Output

(nk) mod 1000000007\binom{n}{k} \bmod 1000000007.

Constraints

0≤k≤n≤1050 \le k \le n \le 10^5

Sample 1

Input

5 2

Output

10

Sample 2

Input

10 0

Output

1

Sign in or join free to run and submit your solution.