use std::io; fn main() { let mut s = String::new(); io::stdin().read_line(&mut s).ok(); let s = s.trim(); let count = s.replace('-', "").split("min").count() - 1; println!("{}", count); }