Catalan numbers c_n are defined by the recurrence relation:
Compute the n-th Catalan number modulo m.
Two integers n~(0 \le n \le 10^4) and m~(0 < m \le 10^9).
Print the value of c_n \bmod m.
Example 1