- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the number of valid bracket sequences of length . For example, when , there are sequences:
()()()
()(())
(())()
((()))
(()())
Input
The only input line has an integer .
Output
Print the number of sequences modulo .
Constraints
Example
Input:
6
Output:
5