Andrew is planning something and he needs your help. Andrew needs your help to determine how many permutations of the first
A permutation
Since the answer might be very large, output it modulo
Constraints
Subtask 1 [10%]
Subtask 2 [30%]
Subtask 3 [60%]
No additional constraints.
Input Specification
The first and only line contains
Output Specification
Output the number of good permutations, modulo
Sample Input 1
Copy
3 2
Sample Output 1
Copy
4
Explanation
The good permutations are
Sample Input 2
Copy
838383 833883
Sample Output 2
Copy
711361423
Comments