Input (grade 9): By many accounts, Al-Musta 'sim had failed to prepare for the onslaught; he neither gathered armies nor strengthened the city's walls.
Output (grade 8): Many accounts say that the caliph failed to prepare for the fight; he neither gathered armies nor strengthened the walls of Baghdad.