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