Input (grade 8): Ramesses II ("the Great") sought to recover territories in the Levant that had been held by the 18th Dynasty.
Output (grade 9): Ramses II ("the Great") of the 19th Dynasty tried to get back territories in the Levant that had been held by the 18th Dynasty.