s = gets.split('') l = 0 max = 0 s.each do |v| if v == '…' l += 1 else if l > max max = l end l = 0 end end puts max