import numpy as np
n, m, x, y = map(int, input().split())
a = list(map(int, input().split()))
b = np.array(a)

c = b >= x
c = c.astype(np.int)
if np.sum(c) > m:
    print('Handicapped')
    exit()

a = sorted(a, reverse=True)

ans = 0
count = 0
for i in range(m):
    if a[i] <= y:
        continue
    ans += a[i]

print(ans)