#include using namespace std; static const int MAX_N = 100000; int N, X, Y, Z; int A[MAX_N]; int main(){ scanf("%d %d %d %d", &N, &X, &Y, &Z); for(int i = 0; i < N; i++){ scanf("%d", &A[i]); A[i]++; } for(int i = 0; i < N; i++){ if(A[i] < 10000) continue; int num = min(Z, A[i] / 10000); Z -= num; A[i] -= num * 10000; } sort(A, A + N, greater()); for(int i = 0; i < N; i++){ if(Z == 0) break; A[i] = 0; Z--; } for(int i = 0; i < N; i++){ if(A[i] < 5000) continue; int num = min(Y, A[i] / 5000); Y -= num; A[i] -= num * 5000; } sort(A, A + N, greater()); for(int i = 0; i < N; i++){ if(Y == 0) break; A[i] = 0; Y--; } for(int i = 0; i < N; i++){ if(A[i] > X * 1000){ printf("No\n"); return 0; } X -= (A[i] % 1000 == 0 ? A[i] / 1000 : A[i] / 1000 + 1); } printf("Yes\n"); return 0; }