Convince either Bob or Rosie to run in the election. Then when everyone has voted, Dave will open the election box. When hidden, get behind the ballot box and wait. After Dave opens the box, there is a brief time where you can take what you want from the box. Take out the votes for Dave and leave the votes for Rosie/Bob.