n = int(input()) S = input() T = input() print(len([i for i in range(n) if S[i] != T[i]]))