Binomial coefficients 4#321

Binomial coefficients 4

2 seconds
64 megabytes
Medium

Given non-negative integers , , and , find the value of the binomial coefficient C_n^k = \binom{n}{k} modulo .

Input

Three integers , , m~(1 \le n \le 10^{18}, 0 \le k \le \min(n, 2 \cdot 10^5), 1 \le m \le 2 \cdot 10^9).

Output

Print the value of C_n^k modulo .

Examples

Example 1

Loading
Loading