N = int(input()) MOD = 10**9+7 fact = [1] for n in range(1,2*N+1): fact.append(fact[-1]*n%MOD) print(fact[2*N]*pow(2,-N,MOD)%MOD)