def main(): _ = input() S = input() T = input() print( len(list(filter(lambda letters: letters[0] != letters[1], zip(S, T))))) if __name__ == "__main__": main()