N, M, X, Y = map(int, input().split()) A = list(map(int, input().split())) F = [] R = [] for i in range(N): if A[i] <= Y: continue if A[i] >= X: R.append(A[i]) else: F.append(A[i]) if len(R) > M: print("Handicapped") else: F.sort() F = F[::-1] i = 0 while M - len(R) > 0 and i < len(F): R.append(F[i]) i += 1 print(sum(R))