A classmate numbered his favorite books in sequence as 1, 2, 3, ..., and the sum of all numbers is a multiple of 100 and less than 1000, what is the maximum number of his number?
某同学把他喜爱的书按次序编号为1、2、3、…，所有编号之和是100的倍数且小于1000，则他编号的最大数是多少？
<result>24</result>