n, m, x, y = map(int, input().split()) a = [] b = [] for t in map(int, input().split()): if t >= x: a.append(t) elif t > y: b.append(t) cnt = m - len(a) if 0 <= cnt: ans = sum(a) + sum(sorted(b, reverse=True)[:cnt]) print(ans) else: print('Handicapped')