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