N = int(input()) S = list(input()) T = list(input()) count = 0 for s, t in zip(S, T): count += s == t print(N - count)