#!/usr/bin/env python3.8 # %% import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines MOD = 10 ** 9 + 7 # %% N = int(read()) fact = [1] * (N + N + 10) for n in range(1, N + N + 10): fact[n] = fact[n - 1] * n % MOD # %% print(fact[N + N] * fact[N] * pow((MOD + 1) // 2, N, MOD) % MOD)