《明史·列传·卷一百四十四》
自严在职几年，对军饷全面核算，注意减省，公私两方都靠着他受益匪浅。
自严在事数年，综核撙节，公私赖之。
During his years in office, Ziyuan calculated the military expenditure in detail and focused on economizing. Both the public and private sectors greatly benefited from his efforts.
<s>[INST] Rewrite the following English passage in the style of Classical Chinese: During his years in office, Ziyuan calculated the military expenditure in detail and focused on economizing. Both the public and private sectors greatly benefited from his efforts. [/INST] 自严在事数年，综核撙节，公私赖之。</s>
Rewrite the following English passage in the style of Classical Chinese: During his years in office, Ziyuan calculated the military expenditure in detail and focused on economizing. Both the public and private sectors greatly benefited from his efforts.
user
自严在事数年，综核撙节，公私赖之。
assistant