Input (grade 10): He was the local bishop before he became Pope in 1046, but he died already in 1047 after having been pope for only twelve months.
Output (grade 8): He was the local bishop before he became Pope, but he died in 1047 after having been pope for only twelve months.