n,s,t=[input() for _ in '1'*3];a=0 for i,j in zip(s,t): if i!=j: a+=1 print(a)