#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> S >> T; if(N==1){ cout << 1 << endl; return 0; } int c=0,ans=0; for(i=1;i<=N-2;i++){ if(S[i]!=T[i]) c++; } if(c%2==0){ ans+=c; if((S[0]==T[0] && S[N-1]!=T[N-1]) || (S[0]!=T[0] && S[N-1]==T[N-1])) ans++; else if(S[0]!=T[0] && S[N-1]!=T[N-1]) ans+=2; }else{ ans+=c; if((S[0]==T[0] && S[N-1]!=T[N-1]) || (S[0]!=T[0] && S[N-1]==T[N-1])) ans++; else if(S[0]==T[0] && S[N-1]==T[N-1]) ans+=2; } cout << ans << endl; return 0; }