n = gets.to_i s = gets t = gets puts (0...n).select{|i| s[i] != t[i]}.size