You have distinct objects, identical bags, and identical boxes. In how many ways is it possible to distribute the objects into the bags and the boxes so that each bag has at least one object, and each box has exactly one object?
Input consists of several test cases, each one consisting of , and . Assume , , and .
For every test case, print the number of ways to distribute distinct objects into identical bags and identical boxes so that each bag has at least one object, and each box has exactly one object. You can assume that the answer is never larger than .
Input
4 0 4 4 1 0 4 2 0 4 4 0 4 1 2 4 0 3 25 9 2
Output
1 1 7 1 6 0 3696020643539070000