礼部
The top three graduates of the palace examinations were directly appointed to the Hanlin Academy. Lower ranked graduates could be appointed to offices like Hanlin bachelor, secretaries, messengers in the Ministry of Rites, case reviewers, erudites, prefectural judges, prefects or county magistrates (zhixian ).