from sys import stdin input=lambda :stdin.readline()[:-1] mod=10**9+7 table_size=10**5*4+10 fac=[1]*table_size finv=[1]*table_size for i in range(2,table_size): fac[i]=fac[i-1]*i%mod finv[table_size-1]=pow(fac[table_size-1],mod-2,mod) for i in range(table_size-2,-1,-1): finv[i]=finv[i+1]*(i+1)%mod def binom(n,k): if n<0 or k<0: return 0 if k>n: return 0 return (fac[n]*finv[k]%mod)*finv[n-k]%mod def inv(a): if a