#include #include #include #include using namespace std; int main() { long long n; cin >> n; long long x5 = n / 5; if (x5 >= 12)cout << "000000000000" << endl; else { long long a = 1; for (int i = 1; i <= n; i++) { a *= i; a %= (long long)(1e12); } cout <