n = int(input()) S = input() T = input() print(len([(i, b) for i, a, b in zip(range(n), S, T) if a != b]))