#include #include #include #include using namespace std; int main(){ int n; cin >> n; string s, t; cin >> s; cin >> t; int cnt1 = 0, cnt2 = 0; for(int i = 0; i < n; i++){ if(s[i] != t[i]) cnt1++; } for(int i = 0; i < n; i++){ if(s[i] != t[n-i-1]) cnt2++; } int ans = 1 << 30; if(cnt1%2 == 0) ans = min(ans, cnt1); if(cnt2%2 == 1) ans = min(ans, cnt2); cout << ans << endl; return 0; }