John had a box of candies. On the first day he ate exactly half of the candies and gave one to his little sister. On the second day he ate exactly half of the remaining candies and gave one to his little sister. On the third day he ate exactly half of the remaining candies and gave one to his little sister, at which point no candies remained. How many candies were in the box at the start?