import sys input = sys.stdin.readline N = int(input()) S = input().rstrip() T = input().rstrip() even = sum(S[i] != T[i] for i in range(N)) odd = sum(S[N-1-i] != T[i] for i in range(N)) ans = 10**18 if even % 2 == 0: ans = even if odd % 2 == 1: ans = min(ans, odd) print(ans)