import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sen = sc.nextInt(); int gosen = sc.nextInt(); int man = sc.nextInt(); PriorityQueue queue = new PriorityQueue(new Comparator() { public int compare(Integer i1, Integer i2) { return i2.intValue() - i1.intValue(); } }); for (int i = 0; i < n; i++) { queue.add(sc.nextInt()); } while (man > 0 && queue.size() > 0) { int x = queue.poll(); if (x < 10000) { man--; } else if (x / 10000 >= man) { queue.add(x - man * 10000); man = 0; } else { int count = x / 10000; man -= count; queue.add(x % 10000); } } while (gosen > 0 && queue.size() > 0) { int x = queue.poll(); if (x < 5000) { gosen--; } else if (x / 5000 >= gosen) { queue.add(x - gosen * 5000); gosen = 0; } else { int count = x / 5000; gosen -= count; queue.add(x % 5000); } } while (queue.size() > 0 && sen >= 0) { int x = queue.poll(); sen -= (x + 1000) / 1000; } if (sen < 0) { System.out.println("No"); } else { System.out.println("Yes"); } } }