#include using namespace std; typedef long long ll; #define M 1000000007 int main() { int n; cin >> n; ll ans = 1; for (int i = 1;i <= n;i++) { ans *= i; ans %= M; ans *= 2 * i - 1; ans %= M; } cout << ans << endl; return 0; }