A book in the middle has been torn off, and the sum of the numbers of the remaining pages is exactly equal to 1000. How many pages does the book have.
一本书中间有一张被撕掉了，余下各页码数之和正好等于1000，这本书原有多少页．
<result>45</result>