N, X, Y, Z = map(int, input().split()) A = list(map(int, input().split())) A = [a + 1 for a in A] A.sort(reverse=True) for i in range(N): if Z == 0: break if A[i] > 10000: t = A[i] // 10000 t = min(t, Z) Z -= t A[i] -= t * 10000 else: break A = [a for a in A if a > 0] A.sort(reverse=True) for i in range(N): if Y == 0: break if A[i] > 5000: t = A[i] // 5000 t = min(t, Y) Y -= t A[i] -= t * 5000 else: break A = [a for a in A if a > 0] A.sort(reverse=True) for i in range(N): if X == 0: break if A[i] <= 1000: X -= 1 A[i] -= 1000 A = [a for a in A if a > 0] A.sort(reverse=True) i = 0 while i < len(A): if A[i] <= 0: i += 1 continue if Z != 0: Z -= 1 A[i] -= 10000 continue elif Y != 0: Y -= 1 A[i] -= 5000 continue elif X != 0: X -= 1 A[i] -= 1000 continue print('No') exit() print('Yes')