input() print sum(x!=y for x, y in zip(raw_input(),raw_input()))