object Solution { def main(args: Array[String]) { readLine() println(readLine().split(" ").map(_.toInt).groupBy(identity).maxBy(_._1)._2.length) } }