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