Input (grade 6): That lasted until the abolition of the han system took place in 1871.
Output (grade 4): That lasted until the the han system was stopped in 1871.