#include<iostream> using namespace std; int n,i; unsigned long long ans=1; int main() { scanf("%d",&n); for(i=1;i<=n;i++) { ans*=i; } printf("%d",ans); return 0; }