import java.util.Scanner;
public class 階乘{
public static void main(String[] args)
{
int sum=1,i;
Scanner input=new Scanner(System.in);
System.out.println("請輸入一個整數:");
int n=input.nextInt();
for(i=1;i<=n;i++)
sum=sum*i;
System.out.println(sum); }}