Input (grade 4): King Afonso VI of Portugal (1656 - 1667).
Output (grade 4): King Afonso VI of Portugal (1656 - 1667).