n, m, x, y = map(int, input().split())
a = list(map(int, input().split()))
cnt = ans = 0
v = []

for i in a:
    if i > y:
        v.append(i)
    if i >=x:
        cnt += 1

if cnt > m:
    ans = "Handicapped"
else:
    v.sort(reverse=True)
    for i in range(min(m, len(v))):
        ans += v[i]
        
print(ans)