#include using namespace std; int main(){ int n;cin>>n; string a,b;cin>>a>>b; int ans = 0; for(int i = 0; n > i; i++){ if(a[i] != b[i])ans++; } cout << ans << endl; }