n = int(input()) S = input() T = input() ans = 0 for x in range(n): if S[x]!=T[x]: ans += 1 print(ans)