n = int(input()) s = input() t = input() print(sum([1 for i,j in zip(s,t) if i!=j]))