import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] sa = br.readLine().split(" "); int n = Integer.parseInt(sa[0]); int x = Integer.parseInt(sa[1]); int y = Integer.parseInt(sa[2]); int z = Integer.parseInt(sa[3]); sa = br.readLine().split(" "); Obj[] arr = new Obj[n]; for (int i = 0; i < n; i++) { Obj o = new Obj(); o.a = Integer.parseInt(sa[i]); o.x = o.a % 5000 / 1000 + 1; o.y = o.a % 10000 / 5000; o.z = o.a / 10000; arr[i] = o; } br.close(); Arrays.parallelSort(arr); for (int i = 0; i < n; i++) { int v = Math.min(arr[i].x, x); arr[i].x -= v; x -= v; if (arr[i].x > 0) { arr[i].y++; } } if (x != 0) { y += x / 5; } for (int i = 0; i < n; i++) { int v = Math.min(arr[i].y, y); arr[i].y -= v; y -= v; if (arr[i].y > 0) { arr[i].z++; } } if (y != 0) { z += y / 2; } for (int i = 0; i < n; i++) { z -= arr[i].z; if (z < 0) { System.out.println("No"); return; } } System.out.println("Yes"); } static class Obj implements Comparable { int a, x, y, z; @Override public int compareTo(Obj o) { if (x != o.x) { return x - o.x; } return y - o.y; } } }