n, m, x, y = map(int, input().split()) A = list(map(int, input().split())) s = [a for a in A if a > y] s.sort(reverse=True) ans = [] for i in range(len(s)): if s[i] >= x and len(ans) <= m: ans.append(s[i]) if len(ans) > m: print("Handicapped") else: i = len(ans) while i < m and i < len(s): ans.append(s[i]) i += 1 print(sum(ans))