A bag contains several small balls. If 3 are taken each time, 1 is left at the end; if 5 or 7 are taken each time, 2 are left at the end. How many balls are there in the bag at least.
一个布袋中装有小球若干个．如果每次取3个，最后剩1个；如果每次取5个或7个，最后都剩2个．布袋中至少有小球多少个．
<gadget id="calculator">5 * 7</gadget>
<output>35</output>

<gadget id="calculator">35 + 2</gadget>
<output>37</output>

<result>37</result>