from collections import Counter n, k = [int(x) for x in input().split()] a = [int(x) for x in input().split()] c = Counter(a) ok = False for i in range(1, n + 1): if c[0] + c[i] >= k: ok = True print("Yes" if ok else "No")