import java.util.Scanner object Main extends App { val sc = new Scanner(System.in) val n = sc.nextInt var count = Array.fill(1000)(0) (0 until n).foreach(_ => count(sc.next.length - 2) += 1) println((0 until 1000).reverse.maxBy(count(_))) }