#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //#define __int64 long long #define REP(i,a,b) for(int i=a;i> n; for(long long i=1; i<=n; i++){ ans *= i; ans %= (long long)1000000000000; if(ans % (long long)1000000000000 == 0){ cout << "000000000000" << endl; return 0; } } cout << ans << endl; return 0; }