n = int(input()) ls_1 = list(input()) ls_2 = list(input()) counter = 0 for i in range(n): if ls_1[i] != ls_2[i]: counter += 1 print(counter)