str = gets.chomp.split(//) max = 0 count = 0 str.size.times{|i| if str[i] == '…' count = count + 1 else max = count if max