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