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