n = int(raw_input()) S = raw_input() T = raw_input() cnt = 0 for p in zip(S, T): if p[0] != p[1]: cnt += 1 print cnt