import math n=int(input()) mod = 1000000007 def fact(n): val = 1 for i in range(2, n + 1): val *= i val %= mod return val def fact2(n): val = 1 for i in range(1, n + 1,2): val *= i val %= mod return val ans = (fact(n)*fact(n)*fact2(2*n-1))%mod print(ans)