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