#include #include #define repeat(i,n) for (int i = 0; (i) < (n); ++(i)) typedef long long ll; using namespace std; template auto vectors(T a, X x) { return vector(x, a); } template auto vectors(T a, X x, Y y, Zs... zs) { auto cont = vectors(a, y, zs...); return vector(x, cont); } const int l = 8; int main() { int n; scanf("%d", &n); vector > dp = vectors(0, l+1, 6*n+1); dp[0][0] = 1; repeat (i,l) { repeat (j,6*n+1) { repeat (k,n+1) if (j+k < 6*n+1) { dp[i+1][j+k] += dp[i][j]; } } } printf("%lld\n", dp[l][6*n]); return 0; }