use std::io::*; const MOD: u64 = 1_000_000_007; 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; for i in 1..n + 1 { ans = i * (i * 2 - 1) % MOD * ans % MOD; } println!("{}", ans); }