Emperor. He instituted competitive exams for state officials, but, oddly, based them on literary texts.