#include <stdio.h>
int fact(int n) {
if (n == 1 || n == 0) {
return 1;
}
return n * fact(n - 1);
}
int main() {
int n;
printf("ENTER THE N NUMBER\n");
scanf("%d", &n);
int s = fact(n);
printf("THE FACTORIAL IS %d\n", s);
return 0;
}