Input (grade 12): Muawiyah, a relative of Uthman and governor (Wali) of Syria, became one of Ali's challengers and after Ali's death managed to overcome the other claimants to the Caliphate.
Output (grade 6): Muawiyah, a relative of Uthman, and governor (Wali) of Syria became one of Ali's challengers. After Ali's death he became Caliph.