Input (grade 10): In 934 Al-Qaim succeeded his father as Caliph, after which he never again left the royal residence at Mahdia.
Output (grade 4): In 934 Al-Qaim succeeded his father as Caliph.