#include using namespace std; namespace { typedef double real; typedef long long ll; template ostream& operator<<(ostream& os, const vector& vs) { if (vs.empty()) return os << "[]"; os << "[" << vs[0]; for (int i = 1; i < vs.size(); i++) os << " " << vs[i]; return os << "]"; } template istream& operator>>(istream& is, vector& vs) { for (auto it = vs.begin(); it != vs.end(); it++) is >> *it; return is; } int N; void input() { cin >> N; } const int MAX_K = 502; ll comb(int k) { static ll dp[6 + 1][MAX_K]; memset(dp, 0, sizeof(dp)); dp[0][0] = 1; for (int i = 0; i < 6; i++) { for (int j = 0; j <= N; j++) { for (int t = 0; t <= k; t++) { dp[i + 1][t + j] += dp[i][t]; } } } return dp[6][k]; } void solve() { ll ans = 0; for (int h = 0; h <= N; h++) { for (int g = 0; g <= N; g++) { ans += comb(h + g); } } cout << ans << endl; } } int main() { input(); solve(); return 0; }