def I(): return input() def IS(): return input().split() def II(): return int(input()) def IIS(): return map(int,input().split()) def LIIS(): return list(map(int,input().split())) def ZER(N): return [False for _ in range(N)] INF=float("inf") MOD=10**9+7 #     V #   / ̄ψ ̄\ #  | 合格祈願 | #  |_____| ############################################################################## n,m,x,y=IIS() A=LIIS() li=[] sm=0 cnt=0 for i in range(n): if A[i]>=x:sm+=A[i];cnt+=1;continue elif A[i]<=y:continue else:li.append(A[i]) if not cnt<=m: print("Handicapped") exit() li.sort(reverse=True) print(sum(li[:min(m-cnt,len(li))])+sm)