import java.math.BigInteger;
import java.util.Scanner;
class Main
{
public static void main
(String[] args
) {
Scanner scanner
= new Scanner
(System.
in); int n = scanner.nextInt();
/* присваиваем результату 1,приводя к типу BigInteger
1- нейтральный элемент относительно умножения */
if(n == 0) {
}
else {
for(int i = 1; i <=n; i++) {
factorial
= factorial.
multiply(BigInteger.
valueOf(i
)); // приводим i к типу BigInteger
}
System.
out.
println(factorial
); }
}
}
aW1wb3J0IGphdmEubWF0aC5CaWdJbnRlZ2VyOwppbXBvcnQgamF2YS51dGlsLlNjYW5uZXI7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSAKCXsKCQlTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWludCBuID0gc2Nhbm5lci5uZXh0SW50KCk7CgkJQmlnSW50ZWdlciBmYWN0b3JpYWwgPSBCaWdJbnRlZ2VyLnZhbHVlT2YoMSk7IAoJCS8qINC/0YDQuNGB0LLQsNC40LLQsNC10Lwg0YDQtdC30YPQu9GM0YLQsNGC0YMgMSzQv9GA0LjQstC+0LTRjyDQuiDRgtC40L/RgyBCaWdJbnRlZ2VyCgkJMS0g0L3QtdC50YLRgNCw0LvRjNC90YvQuSDRjdC70LXQvNC10L3RgiDQvtGC0L3QvtGB0LjRgtC10LvRjNC90L4g0YPQvNC90L7QttC10L3QuNGPICovCgkJaWYobiA9PSAwKSB7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigxKTsKCQl9CgkJZWxzZSB7CgkJCWZvcihpbnQgaSA9IDE7IGkgPD1uOyBpKyspIHsKCQkJCWZhY3RvcmlhbCA9IGZhY3RvcmlhbC5tdWx0aXBseShCaWdJbnRlZ2VyLnZhbHVlT2YoaSkpOyAKCQkJCS8vINC/0YDQuNCy0L7QtNC40LwgaSDQuiDRgtC40L/RgyBCaWdJbnRlZ2VyCgkJCX0KCQkJU3lzdGVtLm91dC5wcmludGxuKGZhY3RvcmlhbCk7CgkJfQoJfQp9Cg==