n=int(input()) s=str(input()) t=str(input()) c=0 for i in range(n): if t[i]==s[i]: c=c+0 else: c=c+1 i=i+1 print(c)