import java.util.*;
class Factorial
{
public static void main(String args[])
{
System.out.println("Enter the number ");
Scanner sc= new Scanner(System.in);
int n=sc.nextInt();
int f=1;
while(n>0)
{
f=f*n;
n--;
}
System.out.println("the factorial is "+f);
}
}