Input (grade 4): Cao Pi then declared himself emperor of Cao Wei.
Output (grade 7): Cao Pi declared himself Emperor of the Wei Dynasty.