n = int(input()) MOD = 10**9+7 ans = 1 for i in range(1,n+1): ans = ans*i%MOD*i%MOD*(2*i-1)%MOD print(ans)