n,m,T=map(int,input().split()) a=list(map(int,input().split())) ok=m ng=0 while ok-ng>1: m=(ok+ng)//2 c=[0]*(n+1) x=0 for i in a: if c[i]