Input (grade 10): However, in 1662 Wilhelm, Duke of Saxe-Weimar died, leaving four children: Johann Ernst, Adolf Wilhelm, Johann Georg and Bernhard.
Output (grade 8): In 1662 Wilhelm, Duke of Saxe-Weimar died, leaving four children: Johann Ernst, Adolf Wilhelm, Johann Georg and Bernhard.