Input (grade 6): Her maternal grandparents were John, King of Saxony and Amalie Auguste, Princess of Bavaria.
Output (grade 7): Her maternal grandparents were John of Saxony and Princess Amalie Auguste of Bavaria.