Input (grade 13): Later, the Han, Sui, Northern and Jin dynasties all repaired, rebuilt, or expanded sections of the Great Wall at great cost to defend themselves against northern invaders.
Output (grade 8): The Han, Sui, Northern and Jin Dynasties all repaired, rebuilt or expanded the Great Wall.