#include using namespace std; const int mod = 1000000007; long long nya[100001]; int main(){ nya[0] = 1; long long eve = 0; long long odd = 1; int n;cin>>n; for(int i = 1; n > i; i++){ if(i%2){ nya[i] = (odd*(i+1))%mod; eve = (eve+nya[i])%mod; }else{ nya[i] = (eve*(i+1))%mod; odd = (odd+nya[i])%mod; } } cout << nya[n-1] << endl; }