N,X,Y,Z=map(int,input().split()) A=list(map(int,input().split())) A.sort(reverse=True) ans="Yes" for a in A: a+=1 c=min(Z,a//10000) Z-=c a-=c*10000 c=min(Y,a//5000) Y-=c a-=c*5000 c=min(X,a//1000) X-=c a-=c*1000 if a: if X: X-=1 elif Y: Y-=1 elif Z: Z-=1 else: ans="No" print(ans)