def read_data(): n = int(input()) S = input().strip() T = input().strip() return n, S, T def solve(n, S, T): return sum(1 for s, t in zip(S, T) if s != t) n, S, T = read_data() print(solve(n, S, T))