A Math Contest P13 - Ways

View as PDF

Points: 17
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

There 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 .

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