N,K=map(int,input().split()) A=list(map(int,input().split())) A.sort() ans=1 mod=10**9+7 b=0 for i in range(N-1,-1,-1): while b