#using : utf-8
#encoding : utf-8

s = gets.chomp

ans = 0

len = 0
con = false

dot = "…"


for i in 0...s.length do
	if s[i] == dot then
		if con == true then
			len += 1
			ans = [ans, len].max
		else
			con = true
			len = 1
			ans = [ans, len].max
		end
	else
		len = 0
		con = false
	end
end

puts ans