Input (grade 9): In the Marinid Empire in present-day Morocco, Abu Salim Ibrahim is overthrown by Abu Umar, who is in turn overthrown by Abu Zayyan.
Output (grade 7): In the Marinid Empire in present-day Morocco, Abu Salim Ibrahim is overthrown by Abu Umar.