#include using namespace std; #define rep(i,a,b) for(int i=a;i> N) { ll dp[601][9]; rep(i, 0, 6 * N + 1) rep(j, 0, 9) dp[i][j] = 0; dp[0][0] = 1; rep(i, 0, 6 * N + 1) rep(j, 0, 8) rep(k, 0, N + 1) { int ii = i + k; int jj = j + 1; if (6 * N < ii) continue; dp[ii][jj] += dp[i][j]; } cout << dp[6 * N][8] << endl; } }