n = int(input()) s = input() t = input() ans = sum(s[i]!=t[i] for i in range(n)) print(ans)