# 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: shop=hq.heappop(A) shop+=money n-=1 hq.heappush(A,shop) min_payment=hq.heappop(A) if min_payment>0: print("Yes") else: print("No")