N,X,Y,Z=map(int,input().split()) A=list(map(int,input().split())) for i in range(N): A[i]+=1 for XYZ,M in zip((Z,Y,X),(10000,5000,1000)): for i in range(N): c=min(A[i]//10000,XYZ) XYZ-=c A[i]-=c*10000 A.sort() for i in range(N-1,-1,-1): if XYZ: A[i]=min(0,A[i]-XYZ) XYZ-=1 if all(a==0 for a in A): ans="Yes" else: ans="No" print(ans)