N=int(input()) A=list(input()) B=list(input()) O=0 for i in range(N): if A[i]!=B[i]:O+=1 print(O)