N = int(input()) s1 = list(input()) s2 = list(input()) x = 0 for i in range(N): if s1[i]!=s2[i]: x += 1 print(x)