N=int(input()) S=list(input()) T=list(input()) S=list(reversed(S)) cnt=0 for i in range(N): if S[i]!=T[i]: cnt+=1 print(cnt)