s = gets.chomp cnt, ma = 0, 0 s.split('').each do |c| if c == '…' cnt += 1 ma = ma < cnt ? cnt : ma else cnt = 0 end end puts ma