print((function (n, s, t) local r = 0 for i=1,n do if s:sub(i,i)~=t:sub(i,i) then r=r+1 end end return r end)(tonumber(io.stdin:read("*l")), io.stdin:read("*l"), io.stdin:read("*l")))