# S head, S tailを用意し、それぞれTと何個違うかdiffを数える # headで合うためにはdiffは偶数必要、tailで合うためにはdiffは奇数必要 # 偶数のhead diff, 奇数のtail diffで小さいほうが答え # 両方ない場合もあるのだろうか。。。 N = int(input()) S_head = input() S_tail = S_head[::-1] T = input() S_head_diff = 0 for i in range(N): if S_head[i] != T[i]: S_head_diff += 1 S_tail_diff = 0 for i in range(N): if S_tail[i] != T[i]: S_tail_diff += 1 ans_list = [] if S_head_diff %2 == 0: ans_list.append(S_head_diff) if S_tail_diff %2 == 1: ans_list.append(S_tail_diff) ans = min(ans_list) print(ans)