import sys n, x, y, z, *a = map(int, sys.stdin.read().split()) def use(cnt, val): for i in range(n): if a[i] < val: continue q, r = divmod(a[i], val) if cnt >= q: cnt -= q a[i] = r else: q -= cnt cnt = 0 a[i] = val * q + r break else: a.sort(reverse=True) for i in range(n): if a[i] >= 0: if cnt: a[i] = -1 cnt -= 1 else: break else: print('Yes') sys.exit() def main(): use(z, 10000) use(y, 5000) use(x, 1000) print('No') if __name__ == '__main__': main()