Problem B. Unknown Treasure
时间限制 1000 ms
内存限制 128 MB
On the way to the next secret treasure hiding place, the mathematician discovered a cave unknown to the map. The mathematician entered the cave because it is there. Somewhere deep in the cave, she found a treasure chest with a combination lock and some numbers on it. After quite a research, the mathematician found out that the correct combination to the lock would be obtained by calculating how many ways are there to pick $m$ different apples among $n$ of them and modulo it with $M$. $M$ is the product of several different primes.
输入数据
输出数据
For each test case output the correct combination on a line.
样例输入
样例输出
$ Mathjax font initiator $