#include #include #include #include #include #include #include static const int MOD = 1000000007; using ll = long long; using u32 = unsigned; using namespace std; template constexpr T INF = ::numeric_limits::max() / 32 * 15 + 208; template struct _Vec { using type = vector::type>; }; template struct _Vec { using type = vector; }; template using Vec = typename _Vec::type; template vector make_v(size_t size, const T& init){ return vector(size, init); } template auto make_v(size_t size, Ts... rest) { return vector(size, make_v(rest...)); } int main() { int n; cin >> n; Vec v = make_v(n, 10, 0); for (int i = 0; i < 10; ++i) { v[0][i] = 1; } for (int i = 1; i < n; ++i) { for (int j = 0; j < 10; ++j) { for (int k = 0; k <= j; ++k) { v[i][j] = (v[i][j] + v[i-1][k]) % MOD; } } } ll ans = 0; for (int i = 0; i < 10; ++i) { ans = (ans + v[n-1][i]) % MOD; } cout << ans << "\n"; return 0; }