import sys import collections input = sys.stdin.readline def read_values(): return tuple(map(int, input().split())) def read_list(): return list(read_values()) def main(): n, k = read_values() a = read_list() c = collections.Counter(a) # c0 = c[0] c0 = c.get(0,0) c[0] = 0 print('YNeos'[c0+max(c.values())