import scala.io.Source.stdin

object Main {
  val v = new Array[Int](101)
  def main(args:Array[String]) =  {
    stdin.getLines.foreach { a => v(a.toInt) += 1 }
    v.zipWithIndex.filter( _._1 == v.max ).foreach { i => println(i._2) }
  }
}