# coding: utf-8 # Your code here! import heapq as hq N,X,Y,Z=map(int,input().split()) A=list(map(lambda x:-int(x),input().split())) hq.heapify(A) for money,n in zip([10000,5000,1000],[Z,Y,X]): while n>0 and A: shop=hq.heappop(A) use=min(-shop//money,n) if use==0: hq.heappush(A,shop) break else: shop+=use*money n-=use hq.heappush(A,shop) while A: if n==0: break else: garbage=hq.heappop(A) n-=1 if A: print("No") else: print("Yes")