#include<iostream> int main(){ int a,b=1; scanf("%d",&a); while(a>=1){ b=b*a; a=a-1; } printf("%d",b); return 0; }