Input (grade 13): Ernest Augustus II, who succeeded in 1748, died in 1758, and his young widow, Anna Amalia, was appointed regent of the country and guardian of her infant son, Charles Augustus.
Output (grade 12): Ernest Augustus II, who succeeded in 1748, died in 1758, and his young widow, Anna Amalia, became regent for her infant son, Charles Augustus.