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