n = input() s = raw_input() t = raw_input() cnt = 0 for i in xrange(n): if s[i] != t[i]: cnt += 1 print cnt