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