from collections import Counter n, k = map(int, input().split()) A = list(map(int, input().split())) c = Counter(A) any = c[0] del c[0] print('YNeos'[max(c.values()) + any < k::2])