import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d = sc.nextInt(); long[][] dp = new long[10][6*d+1]; dp[0][0] = 1; for(int i=0;i<8;i++){ for(int j=0;j<6*d+1;j++){ for(int x = 0;x