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