Input (grade 8): It existed for over a millennium, from the late 7th century AD until the year 1797.
Output (grade 10): It existed for one thousand one hundred years, from the late 7th century until the late 18th century (1797).