public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
int num = ler.nextInt();
int x = fatorial(num);
System.out.println(x);
}
public static int fatorial(int num){
int f = 1 ;
for(int i = num; i > 0; i--){
f *= i;
}
return f;
}
import java.util.Scanner; import java.util.Random;
class Main {
}