from bisect import bisect from itertools import accumulate N,M,X,Y = map(int,input().split()) A = list(map(int,input().split())) A.sort() by,bx = bisect(A,Y),bisect(A,X) if M < N-bx: print("Handicapped") else: AC = [0]+list(accumulate(A)) print(AC[-1]-AC[max(N-M,by)])