There were 674 books in the library, 416 were borrowed, and 778 were bought. How many books are there in the library?
图书室原有图书674本，借出416本，又买来778本，图书室现有图书多少本？
<gadget id="calculator">674 - 416</gadget>
<output>258</output>

<gadget id="calculator">258 + 778</gadget>
<output>1_036</output>

<result>1_036</result>