The school purchased a batch of math homework books and distributed them to the lower, middle and upper grades. The lower grades got 180 books, the middle grades got 360 books, and the upper grades got 46%. How many books are there in this batch? ?
学校购买了一批数学作业本，把它们分给低、中、高3个年级，低年级分得180本，中年级分得360本，高年级分得46%，这批作业本共有多少本？
<gadget id="calculator">180 + 360</gadget>
<output>540</output>

<gadget id="calculator">46 / 100</gadget>
<output>23/50 = around 0.46</output>

<gadget id="calculator">1 - (23/50)</gadget>
<output>27/50 = around 0.54</output>

<gadget id="calculator">540 / (27/50)</gadget>
<output>1_000</output>

<result>1_000</result>