from collections import Counter N, K = map(int, input().split()) A = list(map(int, input().split())) C = Counter(A) L = C.most_common() # print(L) ans = C[0] for i, item in enumerate(L): if item[0] != 0: ans += item[1] break if ans >= K: print('Yes') else: print('No')