Xiaoli has some candy, she gave half of it to her deskmate the first time, gave the remaining half to the classmate in the back seat the second time, and gave the remaining half to her cousin the third time. At that time, I had 5 yuan left. How many pieces of sugar did Xiaoli have?
小丽有一些糖，第一次她拿出一半送给同桌，第二次又拿出余下的一半送给后面座位上的同学，第三次又拿出余下的一半给了表弟，这时自己还剩5块，小丽原来有糖多少块．
<gadget id="calculator">5 * 2 * 2 * 2</gadget>
<output>40</output>

<result>40</result>