Austrian zebra bought four different candies. Among them, there are 12 candies of type A, 13 candies of type B, 14 candies of type C, and 5 candies of type D. Then, at least how many candies must be taken out to ensure that there are four of them.
奥斑马买了四种不同的糖果．其中A种糖果12颗，B种糖果13颗，C种糖果14颗，D种糖果5颗．那么，至少要拿出多少颗糖果才能保证其中四种糖果都有．
<gadget id="calculator">14 + 13 + 12 + 1</gadget>
<output>40</output>

<result>40</result>