#include int main() { char s[1001], t[1001]; int n, cnt = 0, i; scanf("%d %s %s", &n, s, t); for (i = 0; i < n; i++) { if (s[i] != t[i]) cnt++; } printf("%d\n", cnt); return 0; }