Input (grade 5): Cardinal Mazarin, chief minister of France (1642 - 1661).
Output (grade 6): Cardinal Richelieu, chief minister of France (1624 - 1642).