input() s=list(input()) t=list(input()) cnt=0 for i,c in enumerate(s): if c!=t[i]: cnt+=1 print(cnt)