Input (grade 9): William, the third son of George III and younger brother and successor to George IV, was the last king and penultimate monarch of the House of Hanover.
Output (grade 10): William, the third son of George III of the United Kingdom and younger brother and successor to George IV was the last king and monarch of the House of Hanover.