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