n = int(input()) s_s = input() t_s = input() ans = 0 for s, t in zip(s_s, t_s): if s != t: ans += 1 print(ans)