Input (grade 10): After the death of Liu Bei, Zhuge Liang became the chancellor of Shu Han under Liu Shan, Liu Bei's son, and renewed the alliance with Sun Quan.
Output (grade 5): After Liu Bei's death in 223, Zhuge Liang was a regent for the new emperor Liu Shan.