from collections import Counter N, K = map(int, input().split()) A = list(map(int, input().split())) cnt = Counter(A) a = None for k, c in cnt.most_common(): if k == 0: continue else: a = k break if not a or a + cnt[0] >= K: print('Yes') else: print('No')