#include #include #include #include #include typedef long long ll; #define fi first #define se second using namespace std; ll N; ll ans; ll mod = 1000000007; //123456789 #define mod 1000000000000 //123456789012 int main(){ cin>>N; int i; ans = 1; if( N < mod ){ while( N ){ ans *= N; ans %= mod; N--; } cout<