fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let ss: Vec = s.trim().split(',').map(|e| e.parse().unwrap()).collect(); for i in ss { if i != "AC" { println!("Failed..."); return; } } println!("Done!"); }