Input (grade 8): He was succeeded by his elder surviving son, Gian Gastone, when he died, in 1723.
Output (grade 9): He was succeeded by his elder surviving son, Gian Gastone de 'Medici, when he died, in 1723.