n = int(input()) a = list(input()) b = list(input()) cnt = 0 for i, j in zip(a,b): if i != j: cnt += 1 print(cnt)