There were some pieces of candy in a bowl. Shirley took half of them. Then Rose took half of the pieces left in the bowl. After that, Susan took half of the remaining pieces of candy. In the end there were 8 pieces of candy left in the bowl. How many candies were there in the bowl at the beginning?