Bob writes down a number between 1 and 1000. Mary must identify that number by asking "yes/no" questions of bob. Mary knows that bob always tells the truth. If mary uses an optimal strategy, then she will determine the answer at the end of exactly how many questions in the worst case?.