#include using namespace std; typedef long long int64; const int64 mod = 1000000000000LL; int main() { int N; cin >> N; int64 fact = 1; for(int i = 1; i <= min(100, N); i++) { fact *= i; fact %= mod; } cout << fact << endl; }