N, M, X, Y = map(int, input().split()) A = list(map(int, input().split())) A.sort(reverse=True) if N > M and A[M] >= X: print('Handicapped') else: res = 0 for i in range(M): if A[i] > Y: res += A[i] print(res)