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