package yukicoder; import java.util.*; public class Q287 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[][] dp = new long[8][6 * n + 1]; for (int i = 0; i < 8; ++i) { if (i == 0) { for (int j = 0; j <= n; ++j) { dp[i][j] = 1; } } else { for (int j = 0; j <= 6 * n; ++j) { if (dp[i - 1][j] > 0) { for (int k = 0; k <= n; ++k) { if (j + k > 6 * n) { continue; } dp[i][j + k] += dp[i - 1][j]; } } } } } System.out.println(dp[7][6 * n]); } }