from collections import Counter n, k = map(int, input().split()) a = list(map(int, input().split())) c = Counter(a) print('Yes' if (max([c[i] for i in range(1, n+1)]) + c[0]) >= k else 'No')