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]//M,XYZ) XYZ-=c A[i]-=c*M 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)