def read(): N, X, Y, Z = list(map(int, input().split())) A = list(map(int, input().split())) return N, X, Y, Z, A def pay(a, x, y, z): nz = a // 10000 ny = (a - 10000 * nz) // 5000 nx = (a - 10000 * nz - 5000 * ny) // 1000 if x > 0: nx += 1 elif y > 0: ny += 1 elif z > 0: nz += 1 else: return -1, -1, -1 return nx, ny, nz def solve(N, X, Y, Z, A): A = sorted(A, reverse=True) for a in A: nx, ny, nz = pay(a, X, Y, Z) if nx < 0: return "No" X -= nx Y -= ny Z -= nz return "Yes" if __name__ == "__main__": inputs = read() print("%s" % solve(*inputs))