Caravanserai 1

You have to travel by camel train from Uktu to Timb. You will need to stop overnight at a number of caravanserais on the way.

The camels will bypass one caravanserai but not two on one day.

At each caravanserai, you have to pay for lodging. Each caravanserai charges a different cost.

You do not mind how long the journey takes, but you want to pay as little as possible for lodging.

The following list gives the cost of lodging at a chain of caravanserais between Uktu and Timb.

\(\begin{array}{cccccc}
1&7&5&6&8&1 \\
\end{array} \)

What is the least total cost of lodging on your journey?