There is a grid of dimension . Khatru is at the point and he needs to go to the point in the grid. The only constraint is that he needs to pass through the point . He can only move towards right or down.
Help him by finding the number of ways, he can do so. As the answer can be large, output it % .
Input
The first line contains an integer q denoting the total number of queries.
Each of the next q lines contains 4 integers x, y, n, m.
Output
For each test case, print an integer denoting the total number of ways to reach the point .
Constraints
Subtask 1: 20 Points
Subtask 2: 80 Points