n,w=map(int,input().split()) a=[int(input()) for _ in range(n)] cnt={} for v in a: cnt[v]=0 t=0 ans=0 sw=0 for s in range(n): while t