Input (grade 9): In 1791 it gained full independence, but on March 28, 1795, it was annexed by the Russian Empire in the third Partition of Poland.
Output (grade 10): It became independent in 1791, but was annexed by Russian Empire in 1795 during Third Partition of Poland.