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