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