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