n = gets.to_i s = gets.chomp.split("") t = gets.chomp.split("") count = 0 n.times{|i| if s[i] != t[i] count += 1 end } print count