n=int(input()) s=input() t=input() count = n for i in range(n): if s[i] == t[i]: count -= 1 print(count)