import java.util.Arrays;
import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//在此输入您的代码...
long f1=0;
long f2=1;
long temp=0;
for (int i = 3; i <= 14; i++) {
temp=f2;
f2=(i-1)*(f1+f2);
f1=temp;
}
System.out.println(f2);
System.out.println(f2*C(14,28));
scan.close();
}
private static long C(int a,int b) {
long sum = 1;
for (int i = 0; i < a; i++) {
sum=sum*(b-i)/(i+1);
}
return sum;
}
}