#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int f(int n)
{
int ret = 0;
if(n>1)
{
ret = n*f(n-1);
}
else if(n==1)
{
ret = 1;
}
return ret;
}
int main(int argc, char *argv[])
{
char c;
c = getchar();
printf("%d\n",f(4));
return 0;
}