n = int(input()) S = input() T = input() D = [x != y for x, y in zip(S, T)] print(sum(D))