N,X,Y,Z=map(int, input().split()) A=list(map(int, input().split())) A.sort(reverse=True) for a in A: if X<0 or Y<0 or Z<0: print("No") exit() z=min(a//10000,Z) a-=z*10000 Z-=z if a<0: continue if Y==X==0: Z-=1 continue y=min(a//10000,Y) a-=y*5000 Y-=y if a<0: continue if X==0: Y-=1 continue x=(a-1)//1000 + 1 X-=x if X<0 or Y<0 or Z<0: print("No") exit() print("Yes")