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