#include #include #include using namespace std; typedef long long ll; #define MOD 1000000000000 int main(){ ll n; cin >> n; if(n >= 50) cout << "000000000000" << endl; else{ ll ans = 1; for(ll i = n; i >= 2; i--){ ans *= i; ans %= MOD; } cout <