import sys input = sys.stdin.readline from collections import * N, M, X, Y = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 l = [] for i in range(N): if A[i]>=X: cnt += 1 if A[i]>Y: l.append(A[i]) if cnt>M: print('Handicapped') exit() l.sort(reverse=True) print(sum(l[:min(len(l), M)]))