LearnPy Hub
← Arena
IntermediateRating 1300

Catalan Numbers

Print the n-th Catalan number: the number of ways to arrange n pairs of balanced brackets.

Input

One integer n (0 ≤ n ≤ 100).

Output

A number.

Sample 1

Input
3
Output
5

Sample 2

Input
0
Output
1
solution.py
Output appears here
Catalan Numbers · Python Arena problem · LearnPy Hub