input.txt 55 B

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