The Pascal matrix is infinite in size, and its rows and columns are numbered from 0. Each entry is defined as follows.
Pascal[row, column] = Comb(row, column) (0 ≤ column ≤ row)
Every position outside that range holds 0. Comb(n, k) is the number of ways to choose k items out of n distinct items.
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ... |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ... |
| 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ... |
| 1 | 3 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | ... |
| 1 | 4 | 6 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | ... |
| 1 | 5 | 10 | 10 | 5 | 1 | 0 | 0 | 0 | 0 | ... |
| 1 | 6 | 15 | 20 | 15 | 6 | 1 | 0 | 0 | 0 | ... |
| 1 | 7 | 21 | 35 | 35 | 21 | 7 | 1 | 0 | 0 | ... |
| 1 | 8 | 28 | 56 | 70 | 56 | 28 | 8 | 1 | 0 | ... |
| 1 | 9 | 36 | 84 | 126 | 126 | 84 | 36 | 9 | 1 | ... |
| . | . | . | . | . | . | . | . | . | . | . |
| . | . | . | . | . | . | . | . | . | . | . |
| . | . | . | . | . | . | . | . | . | . | . |
Let PascalP be the product of P copies of the Pascal matrix.
PascalP = Pascal × Pascal × ... × Pascal
Write a program that computes a single entry of PascalP.
The first line contains the number of test cases K (1≤K≤1000).
Each of the next K lines holds one test case as four integers. The first integer is the test case number, the second integer is P (1≤P≤100000), and the third and fourth integers are R and C (0≤C≤R≤100000).
For each test case, print the test case number and the entry of PascalP at row R, column C on one line, separated by a single space.
Only inputs whose answer fits in a 64-bit integer are given.