《汉书·传·楚元王传》
申公做博士，免了官，跟郢客回去，又任命为中大夫。
申公为博士，失官，随郢客归，复以为中大夫。
Shen Gong worked as a learned doctor, exempted from office, and went back home with the envoy from Ying. He was appointed as the Grand Master of the Palace again.
<s>[INST] Translate the following Classical Chinese text into modern Chinese: 申公为博士，失官，随郢客归，复以为中大夫。 [/INST] 申公做博士，免了官，跟郢客回去，又任命为中大夫。</s>
Translate the following Classical Chinese text into modern Chinese: 申公为博士，失官，随郢客归，复以为中大夫。
user
申公做博士，免了官，跟郢客回去，又任命为中大夫。
assistant