using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp190 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int n = int.Parse(str[0]); int m = int.Parse(str[1]); int x = int.Parse(str[2]); int y = int.Parse(str[3]); int nokori = n; int kesu = 0; long sum = 0; long[] a = new long[n]; string[] str2 = Console.ReadLine().Split(); for(int i = 0; i < n; i++) { a[i] = int.Parse(str2[i]); } for(int i = 0; i < n; i++) { if (a[i] <= y) { nokori -= 1; a[i] = 1000000; kesu += 1; } } while (a.Min() < x&&nokori>m) { nokori -= 1; a[Array.IndexOf(a,a.Min())] = 1000000; kesu += 1; } if (nokori>m) { Console.WriteLine("Handicapped"); } else { for(int i = 0; i < n; i++) { sum += a[i]; } Console.WriteLine(sum-(kesu*1000000)); } Console.ReadLine(); } } }