import sequtils,strutils,math var N = stdin.readline.parseInt line : seq[string] t : int s : string cnta,cntb : int for n in 0..