import sys input = sys.stdin.readline from collections import Counter N,K=map(int,input().split()) A=list(map(int,input().split())) C=Counter(A) flag=0 for c in C: if c==0: if C[c]>=K: flag=1 else: if C[c]+C[0]>=K: flag=1 if flag==1: print("Yes") else: print("No")