use std::io::Read; use std::collections::HashMap; fn main() { let mut all_data = String::new(); std::io::stdin().read_to_string(&mut all_data).ok(); let all_data: Vec<&str> = all_data.trim().split('\n').map(|s| s.trim()).collect(); let n: usize = all_data.iter().next().unwrap().parse().unwrap(); let mut lsland2bridges: HashMap = HashMap::new(); all_data.iter().skip(1).take(n).for_each(|s| { s.split_whitespace().map(|i| i.parse::().unwrap()).for_each(|a| { if let Some(x) = lsland2bridges.get_mut(&a) { *x += 1; } else { lsland2bridges.insert(a, 1); } }); }); if lsland2bridges.len() == n { println!("Bob"); } else if lsland2bridges.len() + 1 < n { println!("Alice"); } else { if lsland2bridges.values().min().unwrap() == &1 { println!("Alice"); } else { println!("Bob"); } } }