On Arbor Day, the fourth grade planted 345 trees, and the fifth grade planted 25 trees three times less than the fourth grade. How many trees were planted in the two grades?
植树节四年级栽树345棵，五年级栽的棵树比四年级的3倍少25棵，两个年级一共栽多少棵树？
<gadget id="calculator">345 * 3</gadget>
<output>1_035</output>

<gadget id="calculator">1_035 - 25</gadget>
<output>1_010</output>

<gadget id="calculator">345 + 1_010</gadget>
<output>1_355</output>

<result>1_355</result>