The pattern shown here ends as soon as the number of shaded squares in a block becomes 1000. Which block number will be the last in the pattern?