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