import sys from operator import itemgetter from collections import defaultdict, deque import heapq import bisect import math import itertools stdin=sys.stdin sys.setrecursionlimit(10 ** 8) ip=lambda: int(sp()) fp=lambda: float(sp()) lp=lambda:list(map(int,stdin.readline().split())) sp=lambda:stdin.readline().rstrip() Yp=lambda:print('Yes') Np=lambda:print('No') inf = 1 << 60 inf1 = float('inf') mod = 10 ** 9 + 7 #mod = 998244353 eps = 1e-9 sortkey1 = itemgetter(0) sortkey2 = lambda x: (x[0], x[1]) class Comb(): def __init__(self, N, mod): self.N = N self.mod = mod self.fa = self.fa_fainv()[0] self.fainv = self.fa_fainv()[1] def fa_fainv(self): fa = [1] for i in range(1, self.N + 1): fa.append(fa[-1] * i % self.mod) fainv = [pow(fa[-1],self.mod - 2,self.mod)] for i in range(1, self.N + 1)[::-1]: fainv.append(fainv[-1] * i % self.mod) fainv = fainv[::-1] return fa, fainv def calcu_comb(self, a, b): if b == 0: return 1 return self.fa[a] * self.fainv[a - b] * self.fainv[b] % self.mod ############################################################### N = ip() NN = N * 2 ans = 0 comb = Comb(NN + 10, mod) for i in range(N + 1): if i * 2 + N > NN: break A = comb.calcu_comb(N + i * 2 - 1, i) if i > 0: A -= comb.calcu_comb(N + 2 * i - 1, i - 1) ans += A ans %= mod print(ans)