use std::cmp::max; fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s: &str = s.trim(); let mut count: usize = 0; let mut cmax: usize = 0; for c in s.split("") { match c { "…" => { count += 1; cmax = max(cmax, count); }, _ => { count = 0; }, } } println!("{}", cmax); }