N, S, T = open(0) print(sum(s != t for s, t in zip(S, T)))