using System; using System.Linq; namespace BaainoKazu_CS { class Program { static void Main(string[] args) { Solver sol = new Solver(); sol.Solve(); #if DEBUG Console.ReadLine(); #endif } } class Solver { const int Vn = 8; // 変数の数 int n; ulong[,] dp; // dp[i,s] i番目(1-index)までの変数を使い、和がsとなる組み合わせの数 public void Solve() { dp[0, 0] = 1; for(int i=0; i< Vn; i++) { for(int s=0; s<=6*n; s++) { for(int x=0; x<=n; x++) { if (s + x <= 6 * n) { dp[i + 1, s + x] += dp[i, s]; } } } } Console.WriteLine(dp[Vn,6*n]); } public Solver() { n = ri(); dp = new ulong[Vn+1,6*n+1]; } static String rs() { return Console.ReadLine(); } static int ri() { return int.Parse(Console.ReadLine()); } static long rl() { return long.Parse(Console.ReadLine()); } static double rd() { return double.Parse(Console.ReadLine()); } static String[] rsa() { return Console.ReadLine().Split(' '); } static int[] ria() { return Console.ReadLine().Split(' ').Select(e => int.Parse(e)).ToArray(); } static long[] rla() { return Console.ReadLine().Split(' ').Select(e => long.Parse(e)).ToArray(); } static double[] rda() { return Console.ReadLine().Split(' ').Select(e => double.Parse(e)).ToArray(); } } }