a = "…"
s = io.read()
n = string.len(s)
cnt, pos, max = 0, 1, 0
while(pos <= n) do
    p1, p2 = string.find(s, a, pos)
    if(p1 ~= nil) then
        if(pos ~= p1) then
            max, cnt = math.max(cnt, max), 1
        elseif(p1 ~= nil) then
            cnt = cnt + 1
        end
        pos = p2 + 1
    else
        pos = n + 1
    end
end
max = math.max(cnt, max)
print(max)