N = int(input()) S = input() T = input() C = 0 for s, t in zip(S, T): if s != t: C += 1 print(C)