i = input n,s,t = i(),i(),i() a = 0 for x,y in zip(s,t): if x != y: a += 1 print(a)