#### Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

## Problem Description

The binomial coefficients are a very important group of numbers in mathematics and have many uses in pure mathematics and statistics.

In counting, they represent the number of ways of picking k unordered objects from n distinct objects, also known as a combination or combinatorial number. It is usually represented by the symbol ^{n}C_{k}

In pure mathematics, it is appears as the coefficients of the binomial expansion as shown below using another form of representation commonly used. The explicit formula of the binomial coefficient is also given.

There is also a very interesting link between the binomial coefficients and the Pascal's Triangle. The Pascal's Triangle is the triangle formed by constructing each subsequent row with the sum of every two neighbouring numbers in the previous row. Here are the first 6 rows of the Pascal's Triangle.

The interesting thing is that all the numbers in the Pascal's Triangle are binomial coefficients. The relationship can be seen as shown.

Given all this information, all you need to do is code a program to calculate the value of a binomial coefficient.

## Limits

Subtask 1(12%): 0 ≤ *n*, *k* ≤ 10

Subtask 2(23%): 0 ≤ *n*,*k* ≤ 100

Subtask 3(48%): 0 ≤ *k* ≤ 100, 0 ≤ *n* ≤ 100000

Subtask 4(27%): 0 ≤ *k* ≤ 100, 0 ≤ *n* ≤ 10000000

Subtask 5(0%): Sample

## Input

The input will consist of two integers *n* and *k*

## Output

The output should only contain one integer, the value of * ^{n}C_{k}*. Since the number can be very large, output the number modulo 1000000007

## Sample Input

5 2

## Sample Output

10

### Tags

### Subtasks and Limits

Subtask | Score | #TC | Time | Memory | Scoring |
---|---|---|---|---|---|

1 | 12 | 5 | 1s | 64MB | Minimum |

2 | 23 | 5 | 1s | 64MB | Minimum |

3 | 38 | 10 | 1s | 64MB | Minimum |

4 | 27 | 10 | 1s | 64MB | Minimum |

5 | 0 | 1 | 1s | 64MB | Minimum |

### Judge Compile Command

g++-7 ans.cpp -o binomial -Wall -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512