N = int(input()) S = input() T = input() L = [s for s, t in zip(S, T) if s != t] print(len(L))