n = int(input()) print(sum(i != j for i, j in zip(input(), input())))