input.04 24 B

12345
  1. 2
  2. 2 0 0
  3. 1 2
  4. 3 0 0
  5. 1 3 2