import java.util.*; import java.io.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); long ans = 1; for (int i = 1; i <= 2 * n; i++) { if (i % 2 == 0) { ans *= i / 2; } else { ans *= i; } ans %= MOD; } System.out.println(ans); } }