n=int(input()) S,T=input(),input() count=0 for i,j in zip(S,T): if i!=j: count+=1 print(count)