#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int n, m, x, y; cin >> n >> m >> x >> y; vector a(n); rep(i, n) cin >> a[i]; sort(a.rbegin(), a.rend()); while (!a.empty() && a.back() <= y) a.pop_back(); while (!a.empty() && a.size() > m && a.back() < x) a.pop_back(); if (a.back() >= x && a.size() > m) { cout << "Handicapped" << endl; } else { cout << accumulate(a.begin(), a.end(), 0LL) << endl; } return 0; }