import bisect N, M, X, Y = map(int, input().split()) A = list(map(int, input().split())) A.sort() Remain = bisect.bisect_left(A, X) if N - Remain > M: print('Handicapped') else: Remove = bisect.bisect_right(A, Y) B = A[Remove:] print(sum(B[-M:]))