fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); println!("{}", "a".repeat(s.matches('a').count() + 1)) }