Catalan numbers
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Catalan numbers are given by recurrence relation:
Compute the -th Catalan numbers modulo .
Input
Two integers and .
Output
Print the value of .
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 16%