n = input() bef, aft = raw_input(), raw_input() cnt = 0 for i in range(len(bef)): if bef[i] != aft[i]: cnt += 1 print cnt