M = int(input()) N = list(input()) O = list(input()) count = 0 for i in range(M): if N[i] != O[i]: count += 1 print(count)