Input (grade 9): Cao's eldest surviving son Cao Pi succeeded him. Within a year, Cao Pi forced Emperor Xian to abdicate and proclaimed himself the first emperor of Cao Wei.
Output (grade 5): Cao Cao died in 220, and his son Cao Pi followed him in control of the emperor.