i = input;i() print(sum(x!=y for x,y in zip(i(),i())))