#include using namespace std; template using vc=vector; template using vvc=vc>; using ll=long long; using pi=pair; using vi=vc; using vl=vc; using vvi=vvc; using uint=unsigned; using ull=unsigned long long; using dijk=priority_queue,greater>; using dijk2d=priority_queue,pair,greater>>; #define mp make_pair #define mt make_tuple #define a first #define b second #define bg begin() #define ed end() #define pb push_back #define all(x) x.bg,x.ed #define si(x) int(x.size()) #define rng(i,a,b) for(int i=int(a);i=int(a);i--) #define per(i,b) gnr(i,0,b) #define mod 998244353 #define minf -(1<<30) #define inf 1<<30 #define zero(x) memset(x,0,sizeof(x)) templateinline bool chmax(T& a,T b){if(ainline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} templateinline int countDigits(T n){string tmp = to_string(n);return tmp.size();} templatevoid print(T x,int suc=1){cout<void print(const pair&p,int suc=1){print(p.a,2);print(p.b,suc);} templateT sq(const T& t){return t*t;} templatevoid print(const vector&v,int suc=1){rep(i,v.size())print(v[i],i==int(v.size())-1?suc:2);} void yes(){cout<<"Yes"<>v[i];return v;} vc readvl(int n){vc v(n);rep(i,n)cin>>v[i];return v;} pi readpi(){int a,b;cin>>a>>b;return pi(a,b);} string readString(){string s;cin>>s;return s;} bool ispow2(int i){return i&&(i&-i)==i;} vvc readGraph(int n,int m){vvc g(n);rep(i,m){int a,b;cin>>a>>b;a--;b--;g[a].pb(b);g[b].pb(a);}return g;} vvc readGraphc(int n,int m){vvc g(n);rep(i,m){int a,b,c;cin>>a>>b>>c;a--;b--;g[a].pb(mp(b,c));g[b].pb(mp(a,c));}return g;} vvc readTree(int n){return readGraph(n,n-1);} const double PI=3.14159265358979323846; int main() { cin.tie(0); ios::sync_with_stdio(0); cout<>n>>t>>f>>m; vi a=readvi(n); rep(i,n){ a[i]++; } sort(all(a),greater()); rep(i,n){ int k=min(m,a[i]/10000); a[i]-=k*10000; m-=k; } sort(all(a),greater()); rep(i,min(n,m)){ a[i]=0; } sort(all(a),greater()); rep(i,n){ int k=min(f,a[i]/10000); a[i]-=k*10000; f-=k; } sort(all(a),greater()); rep(i,min(n,f)){ a[i]=0; } sort(all(a),greater()); rep(i,n){ int k=min(t,a[i]/10000); a[i]-=k*10000; t-=k; } sort(all(a),greater()); rep(i,min(n,t)){ a[i]=0; } sort(all(a),greater()); if(a[0]!=0)no(); else yes(); }