use proconio::input; fn main() { input! { s: String, } let ans: usize = s.chars() .filter(|c| *c == 'n') .count(); println!("{ans}"); }