Input (grade 6): Kars was under the control of the Ottoman Empire for centuries. For a brief period, from 1878 until 1917, it was controlled by Russia.
Output (grade 8): From 1878 until 1917 most of the present-day Turkish province of Kars was part of the Russian oblast of Kars.