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