int n, i, result;
scanf("%d", &n);
for(i=result=1;i<=n;i++) result*=i;