max = 0 count = 0 s = gets.strip s.length.times do |i| if s[i] == "…" count += 1 else if max < count max = count end count = 0 end end if max < count max = count end puts max