MOD = 10 ** 9 + 7 N = int(input()) dp = 1 for i in range(1,N): dp = dp * (2*i + 2)*(2*i + 1)//2 % MOD print(dp)