n,k=map(int,input().split()) L=list(map(int,input().split())) d=dict() for e in L: if e in d: d[e]+=1 else: d[e]=1 M=0 for k,v in d.items(): if k!=0: M=max(M,v) d0=0 if 0 in d: d0=d[0] print("Yes" if k<=d0+M else "No")