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