input.txt 39 B

123456
  1. 4
  2. 0 10 7 6
  3. 10 0 8 5
  4. 7 8 0 12
  5. 6 5 12 0
  6. 2