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