第十三届JAVAA组决赛——1.小蓝与钥匙
import java.io.*;
import java.util.*;
public class Main{
public static BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
public static PrintWriter stdOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
public static final long C2814 = 40116600;
public static long d(int n) {
if(n == 0 || n == 1) return 0;
if(n == 2) return 1;
return (n-1) * (d(n-1) + d(n-2));
}
public static void main(String[] args) throws IOException{
stdOut.println(C2814 * d(14));
stdOut.flush();
}
}