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