n = int(input()) t = input() m = input() ans = 0 for i in range(n): if t[i] != m[i]: ans+= 1 print (ans)