import sys from heapq import heappush, heappop n, k = map(int, input().split()) a = list(map(int, input().split())) q = [] for x in a: heappush(q, -x) while q: l = -heappop(q) if l == 1: print("No") sys.exit() ret = [] for _ in range(3): if not q: continue m = -heappop(q) ret.append(-m) if l - m in {1, 3, 5}: p = (l+m)//2 - 3 if p > 0: heappush(q, -p) for r in ret: heappush(q, r) print("Yes")