#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    string s,t;
    cin >> n >> s >> t;
    string r = s;
    reverse(r.begin(),r.end());
    int cnt1 = 0,cnt2 = 0;
    for(int i = 0; i < n; i++) {
        if(s[i] != t[i]) cnt1++;
        if(r[i] != t[i]) cnt2++;
    }
    if(cnt1%2 == 0) {
        cout << cnt1 << endl;
    }
    else {
        cout << cnt2 << endl;
    }
}