#include <stdio.h>
fact(n){
int n;
scanf("%d",&n);
if(n==0 ){
    return 1;
}
else{
    return n*fact(n-1);
}
return 0;
}