import java.math.BigInteger;
public class Test {
public static void main(String[] args) {
int n = 15;
BigInteger value = BigInteger.ONE, last = BigInteger.ONE;
for (int i = 2; i <= n; ++i) {
last = last.multiply(BigInteger.valueOf(i));
value = value.add(last);
}
System.out.println(value);
}
}