<p>You have planned some train traveling one year in advance. The days of the year in which you will travel are given as an integer array <code>days</code>. Each day is an integer from <code>1</code> to <code>365</code>.</p>
<p>Train tickets are sold in <strong>three different ways</strong>:</p>
<ul>
<li>a <strong>1-day</strong> pass is sold for <code>costs[0]</code> dollars,</li>
<li>a <strong>7-day</strong> pass is sold for <code>costs[1]</code> dollars, and</li>
<li>a <strong>30-day</strong> pass is sold for <code>costs[2]</code> dollars.</li>
</ul>
<p>The passes allow that many days of consecutive travel.</p>
<ul>
<li>For example, if we get a <strong>7-day</strong> pass on day <code>2</code>, then we can travel for <code>7</code> days: <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, and <code>8</code>.</li>
</ul>
<p>Return <em>the minimum number of dollars you need to travel every day in the given list of days</em>.</p>