title: Working with document, MAX, MIN values and list
body: <p>I have a document in which a first number is a number of racers, the second is time in the first lap and the third is time in the second lap.
  I want to count how many people were DNF in the first round, How many in the second, the Best time in the first round, the second round, and what was the best time.</p>
  <pre class="lang-none prettyprint-override"><code>r.n. 1. 2.
  329  56 47
  129  55 0
  78    0 0
  </code></pre>
  <pre><code>pretek = open (&quot;26-pretek.txt&quot;, &quot;r&quot;)
  riadok = pretek.readline ()
  preteky = []
  x=0
  y=0
  while riadok != &quot;&quot; :
      a = riadok.strip().split()
      preteky.append (a)
      riadok = pretek.readline ()
  print(preteky)
  if &quot;0&quot; in preteky[1]:
      x+=1
  print(x)
  
  if &quot;0&quot; in preteky[2]:
      y+=1
  print(y)
  naj1=min(preteky[2])
  naj2=max(preteky[2])
  print(naj1)
  print(naj2)
  </code></pre>