N,X,Y,Z = [int(i) for i in input().split(' ')] A = [int(i) for i in input().split(' ')] sort_A = sorted(A) for i,j in enumerate(sort_A): while j > 10000 and Z > 0: sort_A[i] -= 10000 Z -= 1 for d in range(1,6): for i,j in enumerate(sort_A): if j%5000 < d * 1000 and X > d-1: sort_A[i] -= j%(1000*d) X -= 1 * d S = Y + Z for i,j in enumerate(sort_A): if j> 0 : if S < 0: print('No') exit() else: S -= (j // 5000)+1 print('Yes')