There are 1 gram, 2 gram, 4 gram, 8 gram, and 16 gram weights, how many different weights can be weighed on the balance scale.
现有1克、2克、4克、8克、16克的砝码各一枚，问在天平秤上能秤多少种不同重量．
<gadget id="calculator">5 + 10 + 10 + 3 + 1</gadget>
<output>29</output>

<result>29</result>