s = gets.chop ans = 0 now = 0 (0...s.size).each do |i| if s[i] == '…' now += 1 ans = now if now > ans else now = 0 end end puts ans