N,x,y,z=map(int,input().split()) A=list(map(int,input().split())) v=[0]*10 for i in range(N): n=A[i] n+=1000 h=n//(10000) if z>=h: z-=h else: h-=z z=0 if y>=2*h: y-=2*h else: cost=10000*h cost-=5000*y if 1000*x>=cost: x-=cost//(1000) else: print('No') exit() t=(A[i]+1000)%(10000) v[t//(1000)]+=1 for i in range(9,0,-1): if z>=v[i]: z-=v[i] v[i]=0 else: v[i]-=z z=0 for i in range(9,0,-1): if y>=v[i]: if i>=5: v[i-5]+=v[i] y-=v[i] v[i]=0 else: y-=v[i] v[i]=0 else: if i>=5: v[i-5]+=y v[i]-=y y=0 else: v[i]-=y y=0 for i in range(9,0,-1): if x>=i*v[i]: x-=i*v[i] v[i]=0 v[0]=0 if sum(v)==0: print('Yes') else: print('No')