class class4{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n= in.nextInt();
int i=1;
int count=2;
while (ii*=3;
count++;
}
if (i==n){
System.out.println("bu uchni darajasi");
} else System.out.println("bu uchni darajasi emas");
}
}
class class5{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n= in.nextInt();
int i= 1, fact=1;
for (i=1;i<=n;i++){
fact=fact*i;
}
System.out.println( fact );
}