n=gets.to_i s=gets t=gets p n.times.count{|i|s[i]!=t[i]}