Input (grade 13): The city of Sredets in Bulgaria is renamed Sofia after the Church of St Sophia Khan Qamar al-din of Mongolistan unsuccessfully invades Timur's eastern province of Farghana.
Output (grade 11): Khan Qamar al-din of Mongolistan unsuccessfully invades Timur's eastern province of Farghana. The city of Sredets in Bulgaria is renamed Sofia after the Church of St Sophia Mamluk Sultan of Egypt Nasir-ad-Din Shaban II is succeeded by Alah-ad-Din Ali.