N, M, X, Y = map(int, input().split()) A = sorted(list(map(int, input().split())), reverse=True) while len(A) > M and A[-1] < X: A.pop() while A and A[-1] <= Y: A.pop() print(sum(A)) if len(A) <= M else print("Handicapped")