#include using namespace std; using u64 = uint_least64_t; using s64 = int_least64_t; using ll = uint_least64_t; int main(){ u64 n,m,x,y; cin >> n >> m >> x >> y; vector a; for (u64 i = 0; i < n; i++){ u64 aa; cin >> aa; if (aa > y){ a.push_back(aa); } } // if (a.size() <= m){ // cout << "Handicapped" << endl; // return 0; // } sort(a.begin(),a.end()); u64 ans = 0; u64 lim = a.size()-m; if (lim < 0) lim = 0; for (u64 i = a.size()-1; i >= lim; i--){ ans += a[i]; } if (a.size() > m){ if (a[a.size()-m-1] >= x){ cout << "Handicapped" << endl; return 0; } } cout << ans << endl; return 0; }