#include #include #include #include #include #include #include #include #include using namespace std; int main() { int n = 0; cin >> n; long long sum = 1; if (n < 50) { for (int i = 1; i <= n; i++) { sum = sum * i % 1000000000000; } cout << sum << endl; }else { cout<<"000000000000"<