n = int(input()) S = list(input()) T = list(input()) s = [] for i in range(n): if S[i] == T[i]: s.append(S[i]) print(len(S) - len(s))