import statistics N,K= map(int, input().split()) A = list(map(int, input().split())) t = A.count(0) try: A.remove(0) except: s = 0 if A.count(statistics.mode(A)) >= K: print("Yes") elif A.count(statistics.mode(A)) + t >= K: print("Yes") else:print("No")