from heapq import heappop, heappush N, K = map(int, input().split()) A = list(map(int, input().split())) q = [-a for a in A[::-1]] cl = [] while 0 < len(q) <= 1000: a = heappop(q) if a == -1: print("No") exit() elif a > -1: print("Yes") exit() p = [] for a2 in q + cl: if abs(a2-a) in [1, 3, 5]: p.append(((a2+a)//2)+4) for a2 in p: heappush(q, a2) cl.append(a) if q: print("No") else: print("Yes")