import sys sys.setrecursionlimit(10 ** 6) def II(): return int(sys.stdin.readline()) def main(): md=10**9+7 n=II() s=2*n ans=1 for _ in range(n): ans*=s*(s-1)//2 if ans>=md:ans%=md s-=2 print(ans) main()