n,s,t = open(0).read().split() print(sum(i!=j for i,j in zip(s,t)))