#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define SZ(x) (int)(x).size() #define REP(i,n) for(int i=0;i<(n);i++) #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REPR(i,n) for(int i=(n)-1;i>=0;i--) #define ALL(s) (s).begin(), (s).end() #define so(V) sort(ALL(V)) #define rev(V) reverse(ALL(V)) #define uni(v) v.erase( unique(ALL(v)) , v.end()); typedef long long unsigned int llu; typedef long long ll; typedef vector vi; typedef vector vll; typedef vector vb; const double EPS = 1e-9; const int MOD = 1e9 + 7; const int INF = (1 << 29); const ll LINF = 1e18; const double PI = acos(-1); templatevector make_v(size_t a) { return vector(a); } templateauto make_v(size_t a, Ts... ts) { return vector(ts...))>(a, make_v(ts...)); } template typename enable_if::value != 0>::type fill_v(U& u, const V... v) { u = U(v...); } template typename enable_if::value == 0>::type fill_v(U& u, const V... v) { for (auto& e : u) fill_v(e, v...); } template bool chmax(T & a, const T & b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T & a, const T & b) { if (a > b) { a = b; return 1; } return 0; } int main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; auto dp = make_v(N + 1, N + 1); dp[0][0] = 1; REP(i, N + 1) { REP(j, N + 1) { if (i + 1 <= N) { dp[i + 1][j]+= dp[i][j]; } if (i > j && j + 1 <= N) { dp[i][j + 1] += dp[i][j]; } } } cout << dp[N][N] << endl; return 0; }