using System.Linq;
using System.Collections.Generic;
using System;

public class Hello
{
    public static int n, m, x, y;
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        n = int.Parse(line[0]);
        m = int.Parse(line[1]);
        x = int.Parse(line[2]);
        y = int.Parse(line[3]);
        var count = 0;
        var sum = 0L;
        var a = new List<long>();
        line = Console.ReadLine().Trim().Split(' ');
        for (int i = 0; i < n; i++)
        {
            var t = long.Parse(line[i]);
            if (t >= x) { sum += t; count++; }
            else if (t > y) a.Add(t);
        }
        getAns(count, sum, a);
    }
    static void getAns (int count, long sum, List<long> a)
    {
        if (count > m) { Console.WriteLine("Handicapped");  return; }
        var acount = a.Count();
        if (acount + count <= m) { Console.WriteLine(a.Sum() + sum ); return; }
        long ans = a.OrderByDescending(x => x).Take(m - count).Sum();
        Console.WriteLine(ans + sum);
    }
}