#include<stdio.h>#include<stdlib.h>int main() { int a,i,b; a=1; i=1; scanf("%d",&b); while(i<=b) { a=a*i; i=i+1; } printf("%d",a);return 0; }