N = int(input()) S = list(input()) T = list(input()) S_rev = S[::-1] c1 = sum(S[i] != T[i] for i in range(N)) c2 = sum(S_rev[i] != T[i] for i in range(N)) if c1 % 2 == 0: print(c1) else: print(c2)