n = int(raw_input()) s = raw_input() t = raw_input() ct = 0 for c,d in zip(s,t): if c != d: ct += 1 print ct