s = gets.chomp regexp = /[^…]/ s = s.split(regexp) puts s.max.length