N = int(input()) P =10 ** 9 + 7 C = 2 * N + 5 fact = [1] * C fact_inv = [1] * C for i in range(2,C): fact[i] = fact[i-1] * i % P fact_inv[-1] = pow(fact[-1],P-2,P) for i in range(C-2,1,-1): fact_inv[i] = fact_inv[i+1] * (i + 1) % P ans = fact[2 * N] * fact_inv[N] % P * fact_inv[N+1] % P print(ans)