#include #include template std::vector vec(int len, T elem) { return std::vector(len, elem); } void solve() { int n; std::cin >> n; auto comb = vec(n * 2 + 1, vec(n * 2 + 1, 0)); comb[0][0] = 1; for (int x = 0; x < n * 2; ++x) { for (int y = 0; y <= x; ++y) { comb[x + 1][y] += comb[x][y]; comb[x + 1][y + 1] += comb[x][y]; } } std::cout << comb[n * 2][n] / (n + 1) << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }