n,k=map(int,input().split()) a=list(map(int,input().split())) c=[0]*(n+1) for v in a: c[v]+=1 print(["No","Yes"][max(c[1:])+c[0]>=k])