Input (grade 10): The last representative of the line, Idris II, "El Wathiq" 'was reduced to the possession of Marrakech, where he was murdered by a slave in 1269.
Output (grade 4): The last representative of the line, Idris II, had only Marrakech left. There he was murdered by a slave in 1269.