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