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