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