from heapq import heappop, heappush N, X, Y, Z = map(int, input().split()) A = list(map(int, input().split())) hq = [] for a in A: heappush(hq, -a) def do(hq, c, num): while hq and num > 0: a = -heappop(hq) n = a // c if n == 0: if num: num -= 1 a -= c elif n <= num: a %= c num -= n else: a -= num * c num = 0 if a >= 0: heappush(hq, -a) if num == 0: break return hq hq = do(hq, 10000, Z) hq = do(hq, 5000, Y) hq = do(hq, 1000, X) if hq: print('No') else: print('Yes')