n = int(input()) s = input() t = input() c = 0 for c1, c2 in zip(s, t): if c1 != c2: c += 1 print(c)