fun main() { val (n, m, x, y) = readLine()!!.split(" ").map { it.toInt() } val a = readLine()!!.split(" ").map { it.toLong() } a.filter { it > y }.sorted().reversed().apply { dropLast(0.coerceAtLeast(this.size - (m + 1))).let { if(it.isEmpty()){ println(0) }else if (it.size == m+1 && it.last() >= x) { println("Handicapped") } else { println(it.dropLast(if(it.size==m+1) 1 else 0).sum()) } } } }