input() ans = 0 for a, b in zip(input(), input()): if a != b: ans += 1 print(ans)