n, m, x, y = map(int, input().split()) A = list(map(int, input().split())) P = [] Q = [] R = [] for a in A: if a <= y: P.append(a) elif a >= x: R.append(a) else: Q.append(a) if len(R) > m: print('Handicapped') exit() Q.sort(reverse=True) ans = sum(R)+sum(Q[0:m-len(R)]) print(ans)