n,S,T=open(0);print(sum(1for i in range(int(n))if S[i]!=T[i]))