n=int(input()) s=input() t=input() print(sum([0 if s[i]==t[i] else 1 for i in range(n)]))