#include using namespace std; int main() { int n; string s, t; cin >> n >> s >> t; cout << inner_product(s.begin(), s.end(), t.begin(), 0, plus(), not_equal_to()) << endl; }