from collections import defaultdict n, k = map(int, input().split()) a = list(map(int, input().split())) d = defaultdict(int) for i in a: d[i] += 1 for i, j in d.items(): if i > 0: if j + d[0] >= k: exit(print("Yes")) else: if j >= k: exit(print("Yes")) print("No")