#include #define mp make_pair #define mt make_tuple #define pb push_back #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef pair pll; const int INF=1<<29; const double EPS=1e-9; const int MOD = 100000007; const int dx[]={1,0,-1,0},dy[]={0,-1,0,1}; int N; ll dp[10][1000]; int main(){ cin >> N; dp[0][0] = 1; for (int i = 0; i < 8; i++){ for (int j = 0; j <= 6 * N; j++){ if (dp[i][j] == 0)continue; for (int k = 0; k <= N; k++){ dp[i + 1][j + k] += dp[i][j]; } } } cout << dp[8][6 * N] << endl; }