n, S, T = int(input().strip()), input().strip(), input().strip() print(str(len([x for x, y in zip(S, T) if x != y])))