from collections import Counter n, k = map(int, input().split()) A = list(map(int, input().split())) c = Counter(A) zero = c[0] del c[0] res = zero + max(c.values()) if res >= k: print('Yes') else: print('No')