Input (grade 11): In the 19th century it was the fourth largest city of Imperial Russia, after Moscow, Saint Petersburg, and Warsaw.
Output (grade 7): In the 19th century it was the fourth city of Imperial Russia, after Moscow and St. Petersburg, and Warsaw.