a=[ ['x','x'*14] ]+$<.map(&:strip).join.chars.chunk{|e|e}.to_a+[ ['x','x'*14] ] r=0 a.size.times{|i| if a[i][0]=='o' r=[r,a[i][1].size].max elsif a[i][1].size