n,m,x,y=map(int,input().split()) a=list(map(int,input().split())) v=[] cnt=0 ans=0 for i in a: if i>y: v+=[i] if i>=x: cnt+=1 if cnt>m: print("Handicapped") exit() v.sort(reverse=True) cnt=0 for i in v: if m>cnt: ans+=i cnt+=1 print(ans)