input.txt 39 B

123456
  1. 4
  2. 0 5 10 5
  3. 0 0 5 0
  4. 0 10 0 0
  5. 0 0 10 0
  6. 0