using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, m, x, y) = (c[0], c[1], c[2], c[3]); var a = NList; Array.Sort(a, (l, r) => r.CompareTo(l)); var tcount = 0; var ans = 0L; for (var i = 0; i < a.Length; ++i) { if (a[i] >= x || (a[i] > y && tcount < m)) { ans += a[i]; ++tcount; } } if (tcount > m) WriteLine("Handicapped"); else WriteLine(ans); } }