#include using namespace std; using ll=long long; #define rep(i,n) for(int i=0;i=0;i--) #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() template bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;} template bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;} int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; string s,t; cin>>n>>s>>t; int ans=1<<30,a=0,b=0; rep(i,n){ if(s[i]!=t[i])a++; } if(a%2==0)chmin(ans,a); reverse(all(s)); rep(i,n){ if(s[i]!=t[i])b++; } if(b%2==1)chmin(ans,b); cout<