Skyscrapers
The skyline of the city has buildings all in a straight line; each building has a distinct height between and , inclusive. The building at index is considered visible from the left if there is no building with a smaller index that is taller. Similarly, a building is visible from the right if there is no taller building with a higher index. For example, if the buildings in order are , then three buildings are visible from the left , but only two are visible from the right ( and ).
You will be given the total number of buildings buildings visible from the left, and buildings visible from the right. Find the number of permutations of the buildings that are consistent with these values.
Input
Each line is a separate test case that contains the values of , and .
Output
For each test case print in a separate line the number of permutations of the buildings that are consistent with the given values. The results must be printed modulo .