import strutils, tables, algorithm let N = stdin.readLine.parseInt var dic = initCountTable[int]() for i in 0 ..< N: dic.inc stdin.readLine.count('^') var eyes_num = newSeq[int]() let crt_num = dic.largest.val while dic.largest.val == crt_num: eyes_num.add dic.largest.key dic[dic.largest.key] = 0 echo eyes_num.sorted(cmp, Descending)[0]