Input (grade 12): The unsettled conditions following the Mongol invasion of Iran led him to wander abroad through Anatolia, Syria, Egypt, and Iraq.
Output (grade 5): He travelled to Anatolia, Syria, Egypt, and Iraq.