from collections import Counter def main(): N,K = map(int, input().split()) A = list(map(int, input().split())) c = Counter(A) num = c[0] c = sorted(c.items(), key=lambda x: x[1], reverse=True) if len(c) >1: num += c[1][1] if c[0][0] == 0 else c[0][1] else: num = c[0][1] if num >= K: print("Yes") else: print("No") if __name__ == "__main__": main()