import sequtils,strutils var N = stdin.readline.parseInt A : array[1001,int] a : int ans,p : int for n in 1..N: a = stdin.readline.count('^') A[a] += 1 for i in 0..1000: if p <= A[i]: p = A[i] ans = i echo ans