Binomial coefficients 1#439

Binomial coefficients 1

1 second
128 megabytes
Easy (≈1000)

Let be a non-negative integer. Let n! = 1 \cdot 2 \cdot ... \cdot n~(0! = 1) and

C_n^{k} = {n! \over k! \cdot (n - k)!} (0 \le k \le n)

You are given the numbers and . Calculate C_n^{k}.

Input

The first line contains the number of test cases t~(t \le 50). Each of the next lines contains two integers and k~(0 \le n < 2^{64}, 0 \le C_n^{k} < 2^{64}).

Output

Print lines, each contains the value C_n^{k} for corresponding test.

Examples

Example 1

Loading
Loading