#include using namespace std; using ll = long long; #define sz(a) (int)(a.size()) #define debug(x) cout << "> " << (#x) << " = " << x << endl; #define all(a) (a).begin(), (a).end() int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; string s, t; cin >> s >> t; int cnt1 = 0, cnt2 = 0; int bal = 0; for (int i = 0; i < n; i++) { if (s[i] != t[i]) { cnt1++; bal ^= 1; } if (s[i] != t[n - i - 1]) { cnt2++; } } if (!bal) cout << cnt1 << "\n"; else cout << cnt2 << "\n"; }