#include #include #include #include #include #include #include using ll = long long; using namespace std; #define MOD 100000000000 ll fac[100010]; int main(void) { ll N; cin >> N; fac[1] = 1; for (ll i = 2; i < 100010; ++i) { fac[i] = (i * fac[i - 1]) % MOD; } if (N < 100010) { cout << setfill('0') << right << setw(12) << fac[N] << endl; } else { cout << setfill('0') << left << setw(12) << endl; } return 0; }