import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } final long MOD = (long) 1e9 + 7; long[] fac = new long[2000001]; long[] ifac = new long[2000001]; long[] inv = new long[2000001]; { fac[0] = ifac[0] = fac[1] = ifac[1] = 1; for (int i = 2; i < fac.length; ++i) fac[i] = i * fac[i - 1] % MOD; inv[0] = inv[1] = 1; for (int i = 2; i < inv.length; ++i) { inv[i] = MOD - inv[(int) (MOD % i)] * (MOD / i) % MOD; ifac[i] = ifac[i - 1] * inv[i] % MOD; } } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long ans = 1; for (int i = 0; i < N; ++i) { ans = ans * fac[2 * i + 2] % MOD * ifac[2 * i] % MOD * ifac[2] % MOD; } ans = ans * fac[N] % MOD; System.out.println(ans); } long inv(long a) { return pow(a, MOD - 2); } long pow(long a, long n) { long ret = 1; for (; n > 0; n >>= 1, a = a * a % MOD) { if (n % 2 == 1) ret = ret * a % MOD; } return ret; } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }