use std::io::{self, Read}; fn main() { let mut cc = String::new(); io::stdin().read_to_string(&mut cc).ok(); let cc = cc.chars().filter(|&c| c != '\n').collect::>(); let (mut max, mut seq) = (0, 0); for &c in &cc { if c == 'o' { seq += 1; max = max.max(seq); } else { seq = 0; } } println!("{}", max); }