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