#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string s, t; cin >> s >> t; set> st; for(int i = 0; i < n; i++) { if(s[i] != t[i]) { st.insert(make_pair(s[i], t[i])); } } cout << st.size() << endl; return 0; }