M=10**9+7 N=int(input()) F=[1] for i in range(1,N+1): F.append((F[-1]*i)%M) G=[0]*(N+1) G[N]=pow(F[N],M-2,M) for i in range(N-1,-1,-1): G[i]=(G[i+1]*(i+1))%M def nCr(n,r): if r<0 or n