n,m,x,y = map(int,input().split()) *a, = map(int,input().split()) p = [i for i in a if i >= x] q = [i for i in a if y < i < x] if len(p) > m: print("Handicapped") exit() q.sort(reverse=1) print(sum(p+q[:m-len(p)]))