n = input().strip() S = input().strip() T = input().strip() print(sum([1 for x, y in zip(S, T) if x != y]))