let () = let s = read_line () in let n = String.length s in let horizontal_ellipsis_p i = i + 2 < n && Char.code s.[i] = 0xe2 && Char.code s.[i+1] = 0x80 && Char.code s.[i+2] = 0xa6 in let rec aux i z = if not (horizontal_ellipsis_p i) then i, z else aux (i + 3) (z + 1) in let rec doit i x = if i = n then x else if not (horizontal_ellipsis_p i) then doit (i + 1) x else let i, z = aux i 0 in doit i (max x z) in doit 0 0 |> Printf.printf "%d\n"