n=int(input()) l=input() m=input() ans=0 for i in range(n): if l[i]!=m[i]:ans+=1 print(ans)