use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let n: Vec = s.split_whitespace().flat_map(str::parse).collect(); let mut c: Vec<_> = (1..=n[0]).map(|i| n[i] != n[i + n[0]]).collect(); c.dedup(); println!("{}", c.iter().filter(|&&x| x).count()) }