#include #include #include #include #include using namespace std; int main() { long long n; cin >> n; if (n >= 50)cout << "000000000000" << endl; else { long long a = 1; for (long long i = n; i > 1; i--) { a *= i; a %= (long long)(1000000000000); } cout << setw(12) << setfill('0') << a << endl; } return 0; }