#include "bits/stdc++.h" using namespace std; #define int long long #define REP(i, n) for(int i=0; i<(n); i++) int N,T; signed main() { cin >> N; int M[60000] = {0}; REP(a,N+1) REP(b,N+1) REP(c,N+1) REP(d,N+1) M[a+b+c+d]++; int cnt = 0; REP(i,6*N+1) { cnt += M[i] * M[6*N-i]; } cout << cnt << endl; return 0; }