Problem: You are given two integers and . Calculate the number of pairs of arrays such that:
- the length of both arrays is equal to ;
- each element of each array is an integer between and (inclusive);
- for any index from to ;
- array is sorted in non-descending order;
- array is sorted in non-ascending order.
As the result can be very large, you should print it modulo .
Input Format: The only line contains two integers and (, ).
Output Format: Print one integer – the number of arrays and satisfying the conditions described above modulo .
Note: In the first test there are suitable arrays:
- ;
- ;
- ;
- ;
- .