import sys sys.setrecursionlimit(10**7) N=int(input()) mod=10**9+7 """ from functools import lru_cache @lru_cache(maxsize=None) def calc(x,y): if x==y==0: return 1 ANS=0 if x>0: ANS+=x*calc(x-1,y+1) if y>0: ANS+=y*calc(x,y-1) return ANS%mod for i in range(1,10): print(calc(i,0)) """ # https://oeis.org/A000680 ANS=1 for i in range(1,2*N+1): ANS=ANS*i%mod ANS=ANS*pow(pow(2,N,mod),mod-2,mod)%mod print(ANS)