An egg vendor calls on his first customer and he sells half his eggs and half an egg. To the second customer, he sells half of what he has left with and half an egg, and to the third customer, he sells half of what he was then left with and half an egg. However, he did not break any egg. If in the end, the vendor was left with three eggs, how many did he have initially ?