from heapq import heapify, heappush, heappop import sys def main(): input = sys.stdin.readline N, X, Y, Z = map(int, input().split()) *A, = map(lambda x: -int(x), input().split()) heapify(A) cnt = [Z, Y, X] for c, n in enumerate([10000, 5000, 1000]): while A and cnt[c] > 0: p = -heappop(A) d = (p + 1) // n if d == 0: cnt[c] -= 1 continue d = min(d, cnt[c]) heappush(A, n * d - p) cnt[c] -= d print('No' if A else 'Yes') if __name__ == '__main__': main()