use std::io; fn main() { let div = 1000000007; let mut st = String::new(); io::stdin().read_line(&mut st).unwrap(); let n: u64 = st.trim().parse().unwrap(); println!("{}", (1..n + 1).fold(1, |mut s, i| { s *= i * 2 - 1; if s > div { s = s % div; } s *= i; if s > div { s = s % div; } s })); }