A correct bracket sequence (CBS) is a string consisting only of round brackets, where each closing bracket has a corresponding opening one, and vice versa.
Examples of CBS: '()', '(())', '()(())'. Examples of strings that are not CBS: '())', ')(', '(()'.
A more strict definition of CBS:
Write a program to count the number of such CBS of length $$$2n$$$ that will remain CBS if you remove two central brackets (i.e., the brackets with numbers $$$n$$$ and $$$n+1$$$). For example, when $$$n$$$=3, the answer is 3 — these are the strings '((()))', '()()()', and '(()())'.
Input one integer $$$n$$$ ($$$1 \le n \le 30$$$).
Output one integer — the number of searched CBS.
3
3
| Name |
|---|


