There are 1,000 students in a certain elementary school. In order to help the poor students learn better, the students donated their books one after another. Half of the boys donated an average of 9 books each, and the other half donated an average of 5 books each. Half of the girls donated 8 books on average, and the other half of the girls donated 6 books on average. How many books did the students in the school donate in total?
某小学共有1000名学生，为帮助困难学生更好地学习，同学们纷纷捐出自己的藏书，有一半男生平均每人捐了9本书，另一半男生平均每人捐了5本书，有一半女生平均每人捐了8本书，另一半女生平均每人捐了6本书，则全校学生共捐了多少本书．
<gadget id="calculator">9 + 5</gadget>
<output>14</output>

<gadget id="calculator">14 / 2</gadget>
<output>7</output>

<gadget id="calculator">1_000 * 7</gadget>
<output>7_000</output>

<result>7_000</result>