Input (grade 7): The United States agreed to leave as of December 1959, and was fully out of Morocco by 1963.
Output (grade 3): The United States agreed to leave as of December 1959. They were fully out of Morocco by 1963.