#include using namespace std; #define rep(i,n) for (long long i=0;i<(long long)(n);i++) #define all(v) v.begin(),v.end() using ll=long long; using pll=pair; using tll=tuple; const ll INF=(1ll<<60); template void chmin(T &a,T b){ if(a>b){ a=b; } } template void chmax(T &a,T b){ if(a> n >> s >> t; ll x=INF; ll cnt=0; rep(i,n){ if(s[i]!=t[i]) cnt++; } chmin(x,cnt/2*2); cnt=0; reverse(all(s)); rep(i,n){ if(s[i]!=t[i]) cnt++; } chmin(x,1+cnt/2*2); cout << x << endl; }