Polly has a very rain number of dollar bills in her purse and no change.She spends half the money on a scarf and gives $1dollar to a homeless person outside the store. She spends half the remaining dollars for lunch and tips the waiter $2. She then spends $3on a smoothie. She has $1 left. How many dollars did she have begin with?