N = gets.to_i S,T = 2.times.map{ gets.chomp } puts N.times.count{|i| S[i] != T[i] }