6. The numbers $1,2, \ldots, 2016$ are written on a board. It is allowed to erase any two numbers and replace them with their arithmetic mean. How should one proceed to ensure that the number 1000 remains on the board?