Input (grade 9): September 15 - Pope Urban VII succeeded Sixtus V. December 5 - Pope Gregory XIV succeeded Urban VII.
Output (grade 8): September 15 - Pope Urban VII succeeds Sixtus V. December 5 - Pope Gregory XIV succeeds Urban VII.