A Math Contest P13 - Ways
View as PDFThere are  objects, and you need to choose 
 of them. Determine the number of ways to choose objects, where the order does not matter. Since this answer may be quite large, output this value modulo 
.
Constraints
Input Specification
The only line contains three space-separated integers, , 
 and 
.
Output Specification
Output the number of unordered ways to choose  of the 
 objects, modulo 
.
Sample Input
5 3 111
Sample Output
10
Comments