use std::io::*; const MOD: u64 = 1_000_000_007; fn inv(mut x: u64) -> u64 { let mut res = 1; let mut e = MOD - 2; while e > 0 { if e & 1 == 1 { res = res * x % MOD; } x = x * x % MOD; e >>= 1; } res } fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n: u64 = itr.next().unwrap().parse().unwrap(); let mut ans = 1; let mut two = 1; for i in 1..(n << 1) + 1 { ans = ans * i % MOD; } for _ in 0..n { two = two * 2 % MOD; } ans = ans * inv(two) % MOD; println!("{}", ans); }