fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s = s.trim(); if s.len() >= 2 && &s[s.len() - 2..s.len()] == "ai" { println!("{}AI", &s[0..s.len() - 2]); } else { println!("{}-AI", s); } }