package main import . "fmt" import . "os" import bf "bufio" import . "slices" func main() { rd:=bf.NewReader(Stdin) var n,m,x,y int Fscan(rd,&n,&m,&x,&y) a:=make([]int,n) for i:=range a { Fscan(rd,&a[i]) } Sort(a) Reverse(a) var ans int64 for i,v:=range a { if v <= y { break; } if i < m { ans+=int64(v) } else if v >= x { Println("Handicapped") return } else { break } } Println(ans) }