n = gets.to_i s = gets t = gets ans = 0 for i in 0..n do if s[i] != t[i] ans += 1 end end p ans