In a three-digit number, if it is added with 1, it will be divisible by 5; if it is added with 3, it will be divisible by 2; if it is added with 5, it will be divisible by 3, what is the largest such three-digit number?
在一个三位数，若它加上1就能被5整除；若它加上3就能被2整除；若它加上5就能被3整除，这样的三位数最大是多少．
<gadget id="calculator">30 * 29</gadget>
<output>870</output>

<gadget id="calculator">109 + 870</gadget>
<output>979</output>

<result>979</result>