if you cant think i will give you the ans but you need to think
so here is the ans
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
int i;
cin>>n;
for (i=n-1;i>0;i--){
n*=i;
}
cout<<n;
return 0;
}