input() L = [1 for s, t in zip(input(), input()) if s != t] print(sum(L))