You are at the origin in the N-dimensional plane and want to go some point in the plane in the minimum number of steps. Formally, with every step you take, you must decrease the distance between you and the end place by one.
If you are provided with the endpoint, calculate the number of different ways you can go to the endpoint mod .
Input format
Output format
Print the number of ways you can reach the destination mod .
Constraints
It is guaranteed that the minimum distance that will be moved from origin to endpoint will be less than or equal to .
In the first test case you need to move 1 step in the first dimension and 1 step in the second dimension there is 2 ways to obtain that
first way: move in the first dimension then the second dimension
second way: move in second dimension then the first dimension