Input (grade 8): It expanded far south into Nubia and held wide territories in the Near East.
Output (grade 8): Egypt expanded far south into Nubia and held wide territories in the Near East.