N = gets.to_i S = gets T = gets ans = 0 for i in 0..N ans += S[i] != T[i] ? 1 : 0 end p ans