学而优则仕

xué ér yōu zé shì

one who is successful in one's studies, can become an official (idiom)

学

xué

to learn

而

ér

and

优

yōu

excellent

则

zé

(literary) (conjunction used to express contrast with a previous clause) but; then

仕

shì

to serve as an official