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