#coding=UTF-8 N=int(input()) S=input() T=input() diffs=0 for idx in range(0,N,1): if S[idx] != T[idx]: diffs=diffs+1 print(diffs)