import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args){ Main main = new Main(); main.solveC(); } private void solveC() { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); BigInteger ans = BigInteger.ONE; for (long i = N; i > 0; i--) { ans = ans.multiply(BigInteger.valueOf(i * (2 * i - 1))); ans = ans.mod(BigInteger.valueOf(1000000007L)); } System.out.println(ans); } }