input.txt 69 B

123456
  1. 5
  2. 0 2 7 -1 -1
  3. 2 0 3 8 5
  4. 7 3 0 1 -1
  5. -1 8 1 0 4
  6. -1 5 -1 4 0