Bracket Sequences I
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Calculate the number of valid bracket sequences of length .
For example, when , there are sequences:
()()() ()(()) (())() ((())) (()())
Input
One integer .
Output
Print the number of sequences modulo .
Examples
Input #1
Answer #1
Submissions 305
Acceptance rate 8%