n,m,x,y = map(int,input().split()) A = sorted(list(map(int,input().split()))) if A[n-1-m] >= x: print("Handicapped") elif A[n-1-m] > y: print(sum(A[n-m:])) else: for i in range(n): if A[i] > y: print(sum(A[i:])) exit() print(0)