Input (grade 11): John VII Palaiologos seeks refuge with the Ottoman sultan Bayezid I after John V Palaiologos is restored by his son, Manuel, and the Republic of Venice.
Output (grade 8): John VII Palaiologos overthrows his grandfather, John V Palaiologos, as Byzantine Emperor. John V Palaiologos is restored later in the year by his son, Manuel, and the Republic of Venice.