// yukicoder: No.224 文字列変更(easy) // 2019.4.14 bal4u #include //// 高速入力 #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int in() // 非負整数の入力 { int n = 0, c = gc(); do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0'); return n; } void ins(char *s) // 文字列の入力 スペース以下の文字で入力終了 { do *s = gc(); while (*s++ > ' '); *(s - 1) = 0; } int n; char S[1005], T[1005]; int main() { int i, ans; n = in(), ins(S), ins(T); ans = 0; for (i = 0; i < n; i++) { if (S[i] != T[i]) ans++; } printf("%d\n", ans); return 0; }