import java.util.Scanner;
import java.math.BigInteger;
public class factorial {
for (int i = 1; i <= num; i++)
return fact;
}
Scanner input
= new Scanner
(System.
in); int x;
x = input.nextInt();
System.
out.
println(factorial
(x
)); }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwppbXBvcnQgamF2YS5tYXRoLkJpZ0ludGVnZXI7CgpwdWJsaWMgY2xhc3MgZmFjdG9yaWFsIHsKICBwdWJsaWMgc3RhdGljIEJpZ0ludGVnZXIgZmFjdG9yaWFsKGludCBudW0pewogICAgQmlnSW50ZWdlciBmYWN0ID0gQmlnSW50ZWdlci52YWx1ZU9mKDEpOwogICAgZm9yIChpbnQgaSA9IDE7IGkgPD0gbnVtOyBpKyspCiAgICAgIGZhY3QgPSBmYWN0Lm11bHRpcGx5KEJpZ0ludGVnZXIudmFsdWVPZihpKSk7CiAgICAgcmV0dXJuIGZhY3Q7Cn0KIAogIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uewogIFNjYW5uZXIgaW5wdXQgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOyAKICBpbnQgeDsKICB4ID0gaW5wdXQubmV4dEludCgpOyAKICBTeXN0ZW0ub3V0LnByaW50bG4oZmFjdG9yaWFsKHgpKTsKICB9Cn0=