n, m, x, y = map(int, input().split()) alst = list(map(int, input().split())) y_x = [] x_ = [] for a in alst: if a >= x: x_.append(a) elif a > y: y_x.append(a) if len(x_) > m: print("Handicapped") exit() ans = sum(x_) y_x.sort(reverse = True) ans += sum(y_x[:m - len(x_)]) print(ans)