# coding: utf-8 s = gets.chomp i = 0 j = 0 l = s.size r = 0 while i < l do while j < l && s[j] == "…" do j += 1 end r = [r, j - i].max if j == i then i += 1 j = i else i = j end end puts "#{r}"