def mul(p,q,n,mod): ans=[0]*(n*n) for i in range(n): for j in range(n): for k in range(n): ans[i*n+k]+=(p[i*n+j]*q[j*n+k])%mod if ans[i*n+k]>=mod: ans[i*n+k]-=mod return ans def my_pow(p,x,n,mod): ans=[0]*(n*n) for i in range(n): ans[i*n+i]=1 while x>0: if x%2==1: ans=mul(ans,p,n,mod) x//=2 p=mul(p,p,n,mod) return ans MOD=10**9+7 L,N,M=map(int,input().split()) if M==0: print(0) exit() K=list(map(int,input().split())) s=set() tmp=0 D=sum(K)+M+1 base=[0]*(D*D) for i in range(M): for j in range(D): if j