#[allow(unused_variables)] fn main(){ let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let length: usize = s.trim().parse().unwrap(); s.clear(); let mut diff: Vec = Vec::new(); for i in 0..2 { s.clear(); std::io::stdin().read_line(&mut s).unwrap(); let vec: Vec<&str> = s.trim().split(' ').collect(); for j in vec { let f = format!("{}", j); diff.push(f); } } for i in 0..diff.len() * 2 { if diff[i] != diff[i + length] { println!("{}\n{}\n{}", i + 1, diff[i], diff[i + length]); break; } } }