fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut n = 0; let mut a = 0; s.chars().for_each(|c| { match c { '…' => n += 1, _ => n = 0, }; if a < n { a = n; } }); println!("{}", a); }