/* -*- coding: utf-8 -*- * * 727.cc: No.727 仲介人moko - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MOD = 1000000007; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); int n2 = n * 2; ll ofrc = 1, frc = 1; for (int i = 3; i < n2; i += 2) ofrc = ofrc * i % MOD; for (int i = 2; i <= n; i++) frc = frc * i % MOD; printf("%lld\n", ofrc * frc % MOD * frc % MOD); return 0; }