from collections import Counter N, K = map(int, input().split()) *A, = map(int, input().split()) counter = Counter(A) zeros = counter.get(0, 0) counter[0] = 0 print("Yes" if K <= max(counter.values()) + zeros else "No")