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