n = int(input()) f = input() s = input() count = 0 for i in range(len(f)): if not f[i] == s[i]: count += 1 print(count)