import sys n,s,t=sys.stdin.read().split("\n") count=0 for i in range(int(n)): if s[n]!=t[n]: count+=1 print(count)