# -*- coding: utf-8 -*- n = int(input()) S = input() T = input() ans = 0 for i in range(n): ans += 1 if S[i]!=T[i] else 0 print(ans)