import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); final int dp_size = 6 * n; long[] DP = new long[dp_size + 1]; for(int i = 0; i <= n; i++){ DP[i] = 1; } for(int tt = 0; tt < 3; tt++){ long[] next_DP = new long[dp_size + 1]; for(int fst = 0; fst <= dp_size; fst++){ if(DP[fst] == 0){ continue; } for(int snd = 0; snd <= dp_size - fst; snd++){ if(DP[snd] == 0){ continue; } next_DP[fst + snd] += DP[fst] * DP[snd]; } } //System.out.println(Arrays.toString(DP)); //System.out.println(Arrays.toString(next_DP)); DP = next_DP; } System.out.println(DP[dp_size]); } }