n = int(input()) S = str(input()) T = str(input()) c = 0 i = 0 while i < n: if S[i] not in T[i]: c += 1 i += 1 print(c)