use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let v: Vec = s.split_whitespace().flat_map(str::parse).collect(); let mut d = v[v[0] + 2..].to_vec(); d.sort(); for &x in &v[2..v[0] + 2] { if let Some(y) = d.iter().find(|&&y| y > x) { println!("{}", y - x); } else { println!("Infinity"); } } }