import sys readline=sys.stdin.readline N=int(readline()) ans=0 for s,t in zip(readline().rstrip(),readline().rstrip()): if s!=t: ans+=1 print(ans)