Input (grade 4): Alfonso IX of Leon becomes king of Leon.
Output (grade 4): Alfonso IX of Castile becomes king of Leon.