N = int(input()) S = input() T = input() ans = 0 for s, t in zip(S, T): if s != t: ans += 1 print(ans)