""" """ import sys from sys import stdin N,M,X,Y = map(int,input().split()) A = list(map(int,input().split())) A.sort() A.reverse() ans = 0 for i in range(N): if i < M: if A[i] <= Y: pass else: ans += A[i] else: if A[i] >= X: print ("Handicapped") sys.exit() print (ans)