500
First, scholars and officials recommended qualified canditates. Then, the canditates took long, hard written exams. Finally, officials graded the tests and the emperor reviewed the tests. The canditates with the highest scores got the jobs.
What is how they chose the people in the civil service.