M=max(W:=[*map(str.strip,open(Z:=0))][1:],key=len) for w in W: p=0 while p