n = int(input()) s = input() t = input() res = 0 for i in range(n): res += s[i] != t[i] print(res)