《新五代史·列传·梁家人传第一》
末帝即位，恢复友文官爵，废友皀为庶人。
末帝即位，复友文官爵，废友珪为庶人。
When the Emperor ascended the throne, he restored You Wenguan's previous rank of nobility and demoted You Wei to the rank of commoner.
<s>[INST] Rewrite the following English passage in the style of Classical Chinese: When the Emperor ascended the throne, he restored You Wenguan's previous rank of nobility and demoted You Wei to the rank of commoner. [/INST] 末帝即位，复友文官爵，废友珪为庶人。</s>
Rewrite the following English passage in the style of Classical Chinese: When the Emperor ascended the throne, he restored You Wenguan's previous rank of nobility and demoted You Wei to the rank of commoner.
user
末帝即位，复友文官爵，废友珪为庶人。
assistant