n = int(raw_input()) S = raw_input() T = raw_input() count = 0 for i in range(n): if S[i] != T[i]:count+=1 print count