n,m,k=map(int,input().split()) a=list(map(int,input().split())) a.sort() pl=[0]*n pr=[0]*n l=0 r=0 for i in range(n): while lk: l+=1 r=max(r,i) while r+1