N = input() a = raw_input() b = raw_input() res = 0 for x,y in zip(a, b): if (x != y): res += 1 print res