lib C fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64 end class String def to_i64 C.strtoll(self, nil, 10) end end n, m, x, y = read_line.split.map(&.to_i64) a = read_line.split.map(&.to_i64).select { |i| i > y } can = a.count { |i| i < x } if a.size - can <= m puts a.sort.reverse[0, m].sum else puts "Handicapped" end