import sys input = sys.stdin.readline N,M,X,Y=map(int,input().split()) A=list(map(int,input().split())) B=[] C=[] for a in A: if a>=X: C.append(a) elif a>Y: B.append(a) if len(C)>M: print("Handicapped") exit() rest=M-len(C) B.sort(reverse=True) B=B[:rest] print(sum(C)+sum(B))