After watching a chess game, A, B, C, and D need 1 minute, 2 minutes, 5 minutes, and 10 minutes to cross the bridge respectively. Because it was dark, they had to cross the bridge with the help of a flashlight, but they only had one flashlight in total, and the load capacity of the bridge was limited, it could only bear the weight of two people at most, that is to say, they could pass at most two people at a time. Now I want to cross the bridge in the shortest time, how can I do it the shortest? Come and help them arrange it. How many minutes is the minimum time?
看完象棋赛，甲、乙、丙、丁四个人过桥，分别需要1分钟，2分钟，5分钟，10分钟．因为天黑，必须借助于手电筒过桥，可是他们总共只有一个手电筒，并且桥的载重能力有限，最多只能承受两个人的重量，也就是说，每次最多过两个人．现在希望用最短的时间过桥怎样才能做到最短呢？你来帮他们安排一下吧．最短时间是多少分钟呢？
<gadget id="calculator">2 + 1 + 10 + 2 + 2</gadget>
<output>17</output>

<result>17</result>