#include"bits/stdc++.h" //#include using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000000; ll dp[10][6001]; int N; int main() { int i, j, k, l, r, x, y; string s; cin >> N; dp[0][0] = 1; REP(i, 8) REP(j, 6 * N + 1) REP(x, N + 1) if (j + x <= 6 * N) dp[i + 1][j + x] += dp[i][j]; cout << dp[8][6 * N] << endl; return 0; }