n = gets.to_i a = gets.chomp.split("") b = gets.chomp.split("") c = 0 if a != b n.times do |i| c += 1 if a[i] != b [i] end end p c