There are some people standing in a line. Some people are leaving the line. More specifically, every second, the following happens.
The remaining people are enumerated from to from left to right where is the number of people in the line.
One person leaves the line. It may be either the person number or the person number m - r + 1 where and are some constants. Note that one of the options above may not be possible if l > m or r > m. However, the constraints will guarantee that at least one of the options is possible.
This process continues for seconds.
You are given numbers , , and . Find how many different sets of people could remain after seconds. Two sets of people are different if and only if there is a person present in one set and not present in the other. Since the answer can be quite big, you must find it modulo 10^9 + 7.
The first line contains one integer (1 \le T \le 10^5): the number of test cases.
Each of the next lines contains integers , , and (1 \le n, l, r, k \le 10^{18}) describing the test cases. It is guaranteed that in each test case k \le n - \min(l, r) + 1, that is, in each of the seconds, at least one of the options at step 2 is possible.
Print lines: the -th line must contain the answer to the -th test case modulo 10^9 + 7.
Example 1