n=int(input()) S=input() T=input() ANS=0 for i in range(n): if S[i]!=T[i]: ANS+=1 print(ANS)