#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using i64 = int64_t; using i32 = int32_t; template void init_n(vector& v, size_t n, U x) { v = vector(n, x); } template void init_n(vector& v, size_t n) { init_n(v, n, T()); } template void read_n(vector& v, size_t n, size_t o = 0) { v = vector(n+o); for (size_t i=o; i> v[i]; } template void read_n(T a[], size_t n, size_t o = 0) { for (size_t i=o; i> a[i]; } template T gabs(const T& x) { return max(x, -x); } #define abs gabs i64 n; int main() { cin >> n; vector dp(1, 1); for (i64 k = 0; k < 8; ++k) { vector dp_to(dp.size() + n); for (i64 i = 0; i < dp.size(); ++i) { for (i64 j = 0; j <= n; ++j) { dp_to[i + j] += dp[i]; } } dp = dp_to; } cout << dp[6 * n] << endl; return 0; }