fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let (mut w, mut d) = (0, 0); for c in s.chars() { match c { 'a' | 's' => w += 1, 'l' | 'o' => d += 1, _ => (), } } println!("{}", (2u8.pow(w) - 1) * (2u8.pow(d) - 1)); }