Edna enters a room with 1000 bottles lined up in a row left to right. One bottle contains a tasteless magic potion. All bottles to the left of the magic potion contain tasteless water. All bottles to the right of the magic potion contain a bitter poison. Edna can drink from no more than two bottles containing poison before becoming sick and being unable to drink anything else. She can take an unlimited number of drinks from any other bottle. What is the minimum number of bottles from which Edna may need to drink to ensure she can identify the bottle containing the magic potion no matter where it is in the lineup?