import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] twin = new int[n * 2 + 1]; for (int i = 0; i <= n; i++) { for (int j = 0; j <= n; j++) { twin[i + j]++; } } int[] quad = new int[n * 4 + 1]; for (int i = 0; i <= 2 * n; i++) { for (int j = 0; j <= 2 * n; j++) { quad[i + j] += twin[i] * twin[j]; } } long ans = 0; for (int i = 2 * n; i <= 4 * n; i++) { ans += (long)quad[i] * quad[6 * n - i]; } System.out.println(ans); } }