Beverly sells mangoes. She sold half her mangoes plus half a mango last Monday. Then she sold half her remaining mangoes plus a mango last tuesday. Again she sold half of her remaining mangoes plus half a mango on wednesday. She then sold the remaining mangoes on thursday. How many mangoes did beverly have at the beginning?