Testfest for homework 7

Test cases are in rows. Programs submitted by pairs are in columns.

In each cell, a check mark indicates that the program passed the test. A cross, that it failed the test. A squiggle, that it passed for some combinations of pretty-printed or one-line output, and rapidly-transmitted vs trickle-fed output, but failed for other combinations.

Pairs are identified by the last four digits of their NUIDs (in the same order as their CCS ids appear in their class repo name). Tests are identified similarly, but with the addition of the test number after the two NUID fragments.

Each cell in each row in the matrix is a hyperlink to the test case inputs and outputs.

Results matrix

Test case 0357-6344 0623-8070 0807 1073-6112 1606-4071 2198-0067 2367 2598-8949 2657-7498 3461-8179 3731-4890 3830-7214 3982-5430 5223-6080 6118-3959 7013-1976 7391-9951 7469-3561 7920-7167 9159-5803 9634-1853
0357-6344-1
×
×
×
×
×
×
0357-6344-3
×
×
×
×
×
×
0357-6344-4
×
×
×
×
0357-6344-5
×
×
×
×
×
×
×
×
0623-8070-3
×
×
×
×
×
×
×
×
0623-8070-5
×
×
×
×
×
1073-6112-3
×
×
×
×
×
×
×
1073-6112-5
×
×
×
×
1073-6112-6
×
×
×
×
×
×
×
1073-6112-8
×
×
×
×
1606-4071-1
×
×
×
×
1606-4071-10
×
×
×
×
1606-4071-11
×
×
×
×
1606-4071-12
×
×
×
×
1606-4071-13
×
×
×
×
×
×
1606-4071-14
×
×
×
×
1606-4071-15
×
×
×
×
×
1606-4071-16
×
×
×
×
1606-4071-17
×
×
×
×
1606-4071-18
×
×
×
×
1606-4071-19
×
×
×
×
1606-4071-2
×
×
×
×
1606-4071-20
×
×
×
×
1606-4071-21
×
×
×
×
×
1606-4071-22
×
×
×
×
1606-4071-23
×
×
×
×
×
×
×
×
×
×
×
×
1606-4071-3
×
×
×
×
×
1606-4071-4
×
×
×
×
1606-4071-5
×
×
×
×
×
×
×
×
1606-4071-6
×
×
×
×
×
×
×
1606-4071-7
×
×
×
×
1606-4071-8
×
×
×
×
×
1606-4071-9
×
×
×
×
×
×
2198-0067-2
×
×
×
×
×
2198-0067-3
×
×
×
×
2598-8949-1
×
×
×
×
×
×
×
×
2598-8949-2
×
×
×
×
2598-8949-3
×
×
×
×
×
×
2657-7498-1
×
×
×
×
×
2657-7498-10
×
×
×
×
2657-7498-11
×
×
×
×
×
2657-7498-14
×
×
×
×
2657-7498-17
×
×
×
×
×
×
2657-7498-18
×
×
×
×
2657-7498-2
×
×
×
×
×
2657-7498-4
×
×
×
×
×
2657-7498-5
×
×
×
×
×
×
×
×
×
×
2657-7498-6
×
×
×
×
×
×
×
×
×
×
2657-7498-7
×
×
×
×
×
×
×
×
×
×
×
2657-7498-8
×
×
×
×
×
×
×
×
2657-7498-9
×
×
×
×
3731-4890-1
×
×
×
×
3731-4890-2
×
×
×
×
3731-4890-3
×
×
×
×
×
×
×
3731-4890-4
×
×
×
×
×
×
3731-4890-5
×
×
×
×
×
3830-7214-13
×
×
×
×
3830-7214-14
×
×
×
×
×
3830-7214-2
×
×
×
×
3830-7214-3
×
×
×
×
×
×
3830-7214-4
×
×
×
×
×
×
3830-7214-5
×
×
×
×
3830-7214-6
×
×
×
×
3830-7214-7
×
×
×
×
3830-7214-8
×
×
×
×
×
×
3830-7214-9
×
×
×
×
5223-6080-2
×
×
×
×
5223-6080-3
×
×
×
×
5223-6080-4
×
×
×
×
6118-3959-1
×
×
×
×
×
×
×
6118-3959-2
×
×
×
×
×
6118-3959-3
×
×
×
×
6118-3959-5
×
×
×
7013-1976-1
×
×
×
×
7013-1976-2
×
×
×
×
×
7013-1976-3
×
×
×
×
7013-1976-4
×
×
×
×
7013-1976-5
×
×
×
×
7391-9951-3
×
×
×
×
×
×
×
×
×
×
7469-3561-1
×
×
×
×
×
×
7469-3561-2
×
×
×
×
×
7469-3561-3
×
×
×
×
7469-3561-4
×
×
×
×
9159-5803-1
×
×
×
×
9159-5803-2
×
×
×
×
9159-5803-3
×
×
×
matthias-1
×
×
×
×
matthias-10
×
×
×
×
matthias-11
×
×
×
×
matthias-12
×
×
×
matthias-13
×
×
×
×
×
×
×
×
matthias-14
×
×
×
matthias-15
×
×
×
×
×
×
×
×
matthias-16
×
×
×
matthias-17
×
×
×
×
×
×
×
×
matthias-18
×
×
×
matthias-19
×
×
×
matthias-2
×
×
×
×
matthias-20
×
×
×
×
×
×
×
×
×
×
matthias-21
×
×
×
×
×
×
×
×
×
×
×
matthias-22
×
×
×
×
×
×
×
×
×
matthias-23
×
×
×
matthias-24
×
×
×
×
matthias-25
×
×
×
×
×
×
×
×
matthias-3
×
×
×
×
×
matthias-4
×
×
×
×
×
×
matthias-5
×
×
×
matthias-6
×
×
×
×
×
matthias-7
×
×
×
×
×
×
matthias-8
×
×
×
×
×
×
matthias-9
×
×
×
×
×

Test cases

0357-6344-1

Input:

[
  [["id",1],
  ["species",[]],
  ["bag",0]],
  1,
  []
]

Output:


0357-6344-3

Input:

[
  [["id",1],
  ["species",[
    [["food",2],
     ["body",2],
     ["population",2],
     ["traits",["carnivore"]]]
  ]],
  ["bag",0]],
  1,
  [
    [["id",2],
     ["species",[]],
     ["bag",0]],
    [["id",3],
     ["species",[]],
     ["bag",0]]
  ]
]

Output:


0357-6344-4

Input:

[
  [["id",1],
  ["species",[
    [["food",2],
     ["body",2],
     ["population",2],
     ["traits",["carnivore"]]],
    [["food",1],
     ["body",2],
     ["population",2],
     ["traits",[]]],
    [["food",2],
     ["body",2],
     ["population",2],
     ["traits",["fat-tissue"]],
      ["fat-food", 0]
    ]
  ]],
  ["bag",3]],
  2,
  [
    [["id",2],
     ["species",[]],
     ["bag",0]],
    [["id",3],
     ["species",[[["food",2],
     ["body",2],
     ["population",2],
     ["traits",["fat-tissue"]],
      ["fat-food", 0]
    ]]],
     ["bag",0]]
  ]
]

Output:

[2, 2]

0357-6344-5

Input:

[
  [["id",1],
  ["species",[
    [["food",2],
     ["body",5],
     ["population",2],
     ["traits",["carnivore"]]],
    [["food",1],
     ["body",4],
     ["population",2],
     ["traits",[]]],
    [["food",1],
     ["body",2],
     ["population",3],
     ["traits",["fat-tissue"]],
      ["fat-food", 2]
    ]
  ]],
  ["bag",3]],
  1,
  [
    [["id",2],
     ["species",[]],
     ["bag",0]],
    [["id",3],
     ["species",[]],
     ["bag",0]]
  ]
]

Output:

2

0623-8070-3

Input:

[
     [
          [
               "id",
               1
          ],
          [
               "species",
               [
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              []
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              1
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "fat-tissue"
                              ]
                         ],
                         [
                              "fat-food",
                              1
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ]
               ]
          ],
          [
               "bag",
               0
          ]
     ],
     1,
     [
          [
               [
                    "id",
                    2
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    3
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ]
     ]
]

Output:

0

0623-8070-5

Input:

[
     [
          [
               "id",
               1
          ],
          [
               "species",
               [
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              1
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              1
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              3
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              3
                         ],
                         [
                              "traits",
                              []
                         ]
                    ]
               ]
          ],
          [
               "bag",
               0
          ]
     ],
     4,
     [
          [
               [
                    "id",
                    2
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   1
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    4
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   [
                                        "warning-call",
                                        "hard-shell"
                                   ]
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    3
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   1
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   [
                                        "carnivore"
                                   ]
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ]
     ]
]

Output:

[0, 0, 0]

1073-6112-3

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 2],
				["body", 2],
				["population", 5],
				["traits", ["fat-tissue", "horns"]],
				["fat-food", 0]
			], 
[
				["food", 2],
				["body", 5],
				["population", 2],
				["traits", ["ambush", "fat-tissue", "warning-call"]],
				["fat-food", 0]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["carnivore"]]
			]
		]
], 
		["bag", 3]
	],
	3, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 2],
					["population", 3],
					["traits", ["warning-call", "horns"]]
				],
				[
					["food", 4],
					["body", 2],
					["population", 4],
					["traits", ["carnivore"]]
				]
			]],
			["bag", 3]
		]
	]
]

Output:

[1,3]

1073-6112-5

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 5],
				["body", 2],
				["population", 5],
				["traits", ["horns"]]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["carnivore"]]
			]
		]
], 
		["bag", 3]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["burrowing", "horns"]]
				]
			]],
			["bag", 3]
		]
	]
]

Output:

false

1073-6112-6

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 1],
				["body", 2],
				["population", 3],
				["traits", ["carnivore", "horns"]]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["carnivore", "ambush"]]
			]
		]
], 
		["bag", 1]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 3],
					["body", 2],
					["population", 7],
					["traits", ["climbing", "ambush"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["fertile", "carnivore"]]
				]
			]],
			["bag", 6]
		], 
[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 2],
					["population", 3],
					["traits", ["burrowing", "horns"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 5],
					["traits", ["pack-hunting", "long-neck"]]
				]
			]],
			["bag", 3]
		], 
[
			["id", 4],
			["species", [
				[
					["food", 1],
					["body", 2],
					["population", 7],
					["traits", ["burrowing", "foraging"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["warning-call", "hard-shell"]]
				]
			]],
			["bag", 0]
		]
	]
]

Output:

[1,2,0]

1073-6112-8

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 1],
				["body", 2],
				["population", 3],
				["traits", ["carnivore", "horns"]]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["ambush"]]
			]
		]
], 
		["bag", 1]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 3],
					["body", 2],
					["population", 7],
					["traits", ["climbing", "ambush"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["fertile", "carnivore"]]
				]
			]],
			["bag", 6]
		]
	]
]

Output:

1

1606-4071-1

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 0],
          ["body", 0],
          ["population", 1],
          ["traits",[]]
        ],
        [
          ["food", 0],
          ["body", 0],
          ["population", 1],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

0

1606-4071-10

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 0],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

1

1606-4071-11

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 3],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

0

1606-4071-12

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 2],
          ["body", 3],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

1

1606-4071-13

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 6],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

0

1606-4071-14

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 1],
          ["population", 1],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ],
        [
          ["food", 6],
          ["body", 7],
          ["population", 7],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0,  1]

1606-4071-15

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 0],
          ["population", 1],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ],
        [
          ["food", 6],
          ["body", 7],
          ["population", 7],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 0, 0]

1606-4071-16

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 0],
          ["body", 1],
          ["population", 1],
          ["traits",["fat-tissue", "carnivore"]],
          ["fat-food", 0]
        ],
        [
          ["food", 6],
          ["body", 7],
          ["population", 7],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0, 1]

1606-4071-17

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 7],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 1],
          ["body", 1],
          ["population", 7],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 0, 0]

1606-4071-18

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 2],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 0, 0]

1606-4071-19

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 0, 0]

1606-4071-2

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 0],
          ["body", 0],
          ["population", 1],
          ["traits",[]]
        ],
        [
          ["food", 2],
          ["body", 1],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 1]

1606-4071-20

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 1],
            ["body", 1],
            ["population", 1],
            ["traits",["burrowing"]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

false

1606-4071-21

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 7],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ],
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0, 7]

1606-4071-22

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 3],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 3],
          ["population", 3],
          ["traits",["carnivore","pack-hunting","ambush"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell", "warning-call", "climbing"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell"]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

false

1606-4071-23

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 3],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 3],
          ["population", 3],
          ["traits",["carnivore","pack-hunting","ambush"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell", "warning-call", "climbing"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell"]]
          ]
        ]
      ],
      ["bag", 0]
    ],
    [
      ["id", 3],
      ["species",
        [
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",["hard-shell", "warning-call", "climbing"]]
          ],
          [
            ["food", 2],
            ["body", 3],
            ["population", 2],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 1, 2]

1606-4071-3

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 7],
          ["body", 7],
          ["population", 7],
          ["traits",["fat-tissue"]],
          ["fat-food", 7]
        ],
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1, 2]

1606-4071-4

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0, 2]

1606-4071-5

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 3],
          ["body", 2],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1,  2]

1606-4071-6

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 3],
          ["body", 5],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1,  2]

1606-4071-7

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 7],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0,  2]

1606-4071-8

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 5],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[1,  2]

1606-4071-9

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 7],
          ["body", 7],
          ["population", 7],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 0],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

1

2198-0067-2

Input:

[
  [
    ["id", 2],
    ["species",
      [[
        ["food", 1],
        ["body", 1],
        ["population", 5],
        ["traits", ["carnivore", "climbing"]]
      ],
      [
        ["food", 3],
        ["body", 1],
        ["population", 3],
        ["traits", ["foraging"]]
      ]
    ]],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
      [
        [
          ["food", 1],
          ["body", 1],
          ["population", 5],
          ["traits", ["climbing"]]
      ]]],
      ["bag", 0]]
  ]
]

Output:

[
  0,
  0,
  0
]

2198-0067-3

Input:

[
  [
    ["id", 2],
    ["species",
      [[
        ["food", 1],
        ["body", 1],
        ["population", 5],
        ["traits", ["burrowing"]]
      ],
      [
        ["food", 1],
        ["body", 1],
        ["population", 3],
        ["traits", ["foraging"]]
      ],
      [
        ["food", 2],
        ["body", 3],
        ["population", 7],
        ["traits", ["fat-tissue"]],
        ["fat-food", 1]
      ]
    ]],
    ["bag", 1]
  ],
  10,
  [
    [["id", 1],
      ["species", []],
      ["bag", 0]]
  ]
]

Output:

[
  2,
  2
]

2598-8949-1

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", ["carnivore"]]
      ]]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "burrowing"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

false

2598-8949-2

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", []]
      ],
      [
        ["food", 2],
        ["body", 2],
        ["population", 5],
        ["traits", []]
      ]
      ]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "burrowing"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

1

2598-8949-3

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", ["fat-tissue"]]
      ],
      [
        ["food", 2],
        ["body", 2],
        ["population", 5],
        ["traits", []]
      ]
      ]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "carnivore"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[0, 2]

2657-7498-1

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:


2657-7498-10

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue"]],
        ["fat-food", 1]
      ]
    ]],
    ["bag",0]
  ],
  4,
  []
]

Output:

[0,2]

2657-7498-11

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",5],
        ["population",3],
        ["traits",["fat-tissue"]],
        ["fat-food", 2]
      ],
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue"]],
        ["fat-food", 0]
      ]
    ]],
    ["bag",0]
  ],
  4,
  []
]

Output:

[0,3]

2657-7498-14

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",0],
        ["body",3],
        ["population",2],
        ["traits",["fat-tissue"]],
        ["fat-food", 0]
      ],
      [
        ["food",0],
        ["body",3],
        ["population",2],
        ["traits",["fat-tissue", "climbing"]],
        ["fat-food", 0]
      ]
    ]],
    ["bag",0]
  ],
  4,
  []
]

Output:

[0,3]

2657-7498-17

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",2],
        ["body",3],
        ["population",3],
        ["traits",["horns", "burrowing"]]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:

0

2657-7498-18

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",2],
        ["body",3],
        ["population",3],
        ["traits",["horns", "climbing"]]
      ],
      [
        ["food",2],
        ["body",3],
        ["population",3],
        ["traits",["horns", "ambush"]]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:

0

2657-7498-2

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:


2657-7498-4

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:


2657-7498-5

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",0],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  [
    [
      ["id",2],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ]
  ]
]

Output:

[0,0,1]

2657-7498-6

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",0],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ],
      [
        ["food",0],
        ["body",3],
        ["population",5],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  [
    [
      ["id",2],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ]
  ]
]

Output:

[1,0,1]

2657-7498-7

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",0],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  [
    [
      ["id",2],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ],
    [
      ["id",1231],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ]
  ]
]

Output:

[0,0,1]

2657-7498-8

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",0],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue", "carnivore"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag",0]
  ],
  1,
  [
    [
      ["id",2],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ],
    [
      ["id",1231],
      ["species",[
        [
          ["food",3],
          ["body",3],
          ["population",3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food",3],
          ["body",3],
          ["population",7],
          ["traits",["fat-tissue", "warning-call"]],
          ["fat-food", 3]
        ]
      ]],
      ["bag",0]
    ]
  ]
]

Output:

[0,1,1]

2657-7498-9

Input:

[
  [
    ["id",1],
    ["species",[
      [
        ["food",3],
        ["body",3],
        ["population",3],
        ["traits",["fat-tissue"]],
        ["fat-food", 0]
      ]
    ]],
    ["bag",0]
  ],
  1,
  []
]

Output:

[0,1]

3731-4890-1

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 0],
				["body", 6],
				["population", 7],
				["traits", ["climbing", "fat-tissue"]],
                ["fat-food", 0]
			],
			[
				["food", 0],
				["body", 6],
				["population", 6],
				["traits", ["fertile"]]
			],
			[
				["food", 0],
				["body", 5],
				["population", 2],
				["traits", ["fat-tissue"]],
                ["fat-food", 0]
			]
		]],
		["bag", 10]
	],

	19, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 6],
					["population", 6],
					["traits", ["carnivore", "climbing"]]
				]
			]],
			["bag", 10]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 6],
					["population", 6],
					["traits", ["climbing"]]
				]
			]],
			["bag", 10]
		]
	]
]

Output:

[0, 6]

3731-4890-2

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 0],
				["body", 5],
				["population", 7],
				["traits", ["climbing", "fertile"]]
			],
			[
				["food", 0],
				["body", 4],
				["population", 6],
				["traits", ["horns"]]
			],
			[
				["food", 0],
				["body", 5],
				["population", 5],
				["traits", ["fertile"]]
			]
		]],
		["bag", 10]
	],
	20, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 5],
					["traits", ["carnivore", "climbing"]]
				]
			]],
			["bag", 10]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 5],
					["traits", ["climbing"]]
				]
			]],
			["bag", 10]
		]
	]
]

Output:

0

3731-4890-3

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 7],
				["body", 5],
				["population", 7],
				["traits", ["climbing", "fat-tissue"]],
				["fat-food", 5]
			],
			[
				["food", 6],
				["body", 4],
				["population", 6],
				["traits", ["fat-tissue"]],
				["fat-food", 4]
			],
			[
				["food", 0],
				["body", 5],
				["population", 5],
				["traits", ["fertile", "carnivore", "climbing"]]
			]
		]],
		["bag", 10]
	],
	19, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 3],
					["population", 5],
					["traits", ["horns", "fat-tissue"]],
					["fat-food", 0]
				],
				[
					["food", 0],
					["body", 6],
					["population", 5],
					["traits", ["horns", "climbing"]]
				]
			]],
			["bag", 10]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 4],
					["traits", ["climbing"]]
				]
			]],
			["bag", 10]
		]
	]
]

Output:

[2, 0, 1]

3731-4890-4

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 7],
				["body", 5],
				["population", 7],
				["traits", ["climbing", "fat-tissue"]],
				["fat-food", 5]
			],
			[
				["food", 6],
				["body", 4],
				["population", 6],
				["traits", ["fat-tissue"]],
				["fat-food", 4]
			],
			[
				["food", 5],
				["body", 5],
				["population", 5],
				["traits", ["fertile"]]
			]
		]],
		["bag", 10]
	],
	19, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 5],
					["traits", ["carnivore", "climbing"]]
				]
			]],
			["bag", 10]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 5],
					["traits", ["climbing"]]
				]
			]],
			["bag", 10]
		]
	]
]

Output:


3731-4890-5

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 7],
				["body", 5],
				["population", 7],
				["traits", ["climbing", "fat-tissue"]],
				["fat-food", 5]
			],
			[
				["food", 6],
				["body", 4],
				["population", 6],
				["traits", ["fat-tissue"]],
				["fat-food", 4]
			],
			[
				["food", 3],
				["body", 5],
				["population", 5],
				["traits", ["carnivore", "climbing"]]
			]
		]],
		["bag", 10]
	],
	10, [
		[
			["id", 2],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 5],
					["traits", ["carnivore", "climbing"]]
				]
			]],
			["bag", 10]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 5],
					["population", 4],
					["traits", ["climbing"]]
				]
			]],
			["bag", 10]
		]
	]
]

Output:

[2, 0, 0]

3830-7214-13

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",2],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",1]],
              [["food",1],
               ["body",5],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",1]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[1,4]

3830-7214-14

Input:

[[["id",10],
  ["species",[[["food",0],
               ["body",5],
               ["population",1],
               ["traits",[]]],
              [["food",0],
               ["body",2],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]]]]

Output:

0

3830-7214-2

Input:

[[["id",10],
  ["species",[[["food",0],
                 ["body",1],
                 ["population",1],
                 ["traits",["carnivore"]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]]]]

Output:

[0,0,0]

3830-7214-3

Input:

[[["id",10],
  ["species",[[["food",0],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

0

3830-7214-4

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:


3830-7214-5

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",1],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",0]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[0,1]

3830-7214-6

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",4],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",0]]]],
  ["bag",10]],
 2,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[0,2]

3830-7214-7

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",4],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",2]]]],
  ["bag",10]],
 12,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[0,2]

3830-7214-8

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",4],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",4]]]],
  ["bag",10]],
 12,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:


3830-7214-9

Input:

[[["id",10],
  ["species",[[["food",0],
                 ["body",1],
                 ["population",1],
                 ["traits",["carnivore"]]],
              [["food",1],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]]]]

Output:

false

5223-6080-2

Input:

[[["id",1],
  ["species",
     	[[["food",0],
		  ["body",4],
		  ["population",2],
		  ["traits",
		    ["carnivore"]]]]],
  ["bag",0]], 
 10,
 [[["id",2],
   ["species",
      [[["food",1],
		["body",3],
        ["population",3],
		["traits",
		    ["herding"]]],
	   [["food",1],
		["body",2],
		["population",4],
		["traits",
		    ["carnivore", "ambush"]]]]],
   ["bag",0]],

   [["id",3],
    ["species",
     	[[["food",0],
		  ["body",1],
		  ["population",2],
		  ["traits",[]]]]],
    ["bag",0]]]]

Output:

[0, 0, 1]

5223-6080-3

Input:

[[["id",1],
  ["species",
     [[["food",0],
	   ["body",1],
	   ["population",1],
	   ["traits",
		    ["symbiosis"]]],
	  [["food",0],
	   ["body",3],
       ["population",1],
       ["traits",
		   ["warning-call"]]]]],
  ["bag",0]], 
  10,
  [[["id",2],
    ["species",
       [[["food",2],
		 ["body",2],
		 ["population",2],
		 ["traits",[]]],
		[["food",0],
		 ["body",1],
		 ["population",1],
		 ["traits", []]]]],
    ["bag",0]],
     
   [["id",3],
    ["species",
       [[["food",0],
		 ["body",1],
		 ["population",1],
		 ["traits",[]]]]],
    ["bag",0]]]]

Output:

1

5223-6080-4

Input:

[[["id",1],
  ["species",
     [[["food",0],
	   ["body",5],
	   ["population",1],
	   ["traits",
		    ["fat-tissue"]],
	   ["fat-food", 3]],
	  [["food",0],
	   ["body",6],
	   ["population",1],
	   ["traits",
		    ["warning-call"]]]]],
  ["bag",0]], 
 10,
  [[["id",2],
    ["species",
     	[[["food",2],
		  ["body",2],
		  ["population",2],
		  ["traits", []]],
		 [["food",0],
		  ["body",1],
		  ["population",1],
		  ["traits", []]]]],
    ["bag",0]],
     
   [["id",3],
    ["species",
     	[[["food",0],
		  ["body",1],
		  ["population",1],
		  ["traits",[]]]]],
    ["bag",0]]]]

Output:

[0, 2]

6118-3959-1

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 2], ["population", 4], ["traits", ["fat-tissue", "carnivore"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[0, 0, 0]

6118-3959-2

Input:

[[["id", 1], ["species", [[["food", 2], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 2], ["traits", ["carnivore"]]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[1, 0, 0]

6118-3959-3

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 6], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 2, [[["id", 3], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[0, 2]

6118-3959-5

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 1]], [["food", 1], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 1]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[0, 1]

7013-1976-1

Input:

[
  [
    [
      "id",
      1
    ],
    [
      "species",
      [
        [
          [
            "food",
            2
          ],
          [
            "body",
            2
          ],
          [
            "population",
            3
          ],
          [
            "traits",
            []
          ]
        ],
        [
          [
            "food",
            3
          ],
          [
            "body",
            4
          ],
          [
            "population",
            6
          ],
          [
            "traits",
            []
          ]
        ]
      ]
    ],
    [
      "bag",
      2
    ]
  ],
  3,
  [
    [
      [
        "id",
        2
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ],
    [
      [
        "id",
        3
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ]
  ]
]

Output:

1

7013-1976-2

Input:

[[["id",1],["species",[[["food",2],["body",4],["population",6],["traits",["fat-tissue"]]]]],["bag",2]],8,[[["id",2],["species",[]],["bag",0]],[["id",3],["species",[]],["bag",0]]]]

Output:

[0, 4]

7013-1976-3

Input:

[[["id", 1], ["species", [[["food", 2], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 3, [[["id", 2], ["species", [[["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]], ["bag", 0]], [["id", 3], ["species", []], ["bag", 0]]]]

Output:

[0, 0, 0]

7013-1976-4

Input:

[
  [
    [
      "id",
      1
    ],
    [
      "species",
      [
        [
          [
            "food",
            2
          ],
          [
            "body",
            2
          ],
          [
            "population",
            3
          ],
          [
            "traits",
            [
              "carnivore"
            ]
          ]
        ],
        [
          [
            "food",
            3
          ],
          [
            "body",
            4
          ],
          [
            "population",
            6
          ],
          [
            "traits",
            [
              "carnivore"
            ]
          ]
        ]
      ]
    ],
    [
      "bag",
      2
    ]
  ],
  3,
  [
    [
      [
        "id",
        2
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ],
    [
      [
        "id",
        3
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ]
  ]
]

Output:

false

7013-1976-5

Input:

[[["id", 1], ["species", [[["food", 3], ["body", 3], ["population", 3], ["traits", []]], [["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]], ["bag", 2]], 3, [[["id", 2], ["species", [[["food", 2], ["body", 3], ["population", 3], ["traits", []]]]], ["bag", 0]], [["id", 3], ["species", []], ["bag", 0]]]]

Output:

[1, 0, 0]

7391-9951-3

Input:

[
	[
		["id", 1],
		["species",
			[
				[
					["food", 3],
					["body", 2],
					["population", 4],
					["traits", ["hard-shell"]],
					["fat-food", 0]
				],
				[
					["food", 3],
					["body", 2],
					["population", 4],
					["traits", []]
				],
				[
					["food", 3],
					["body", 1],
					["population", 4],
					["traits", []]
				],
				[
					["food", 1],
					["body", 1],
					["population", 2],
					["traits", []]
				]
			]
		],
		["bag", 0]
	],
	10,
	[
		[
			["id", 2],
			["species", []],
			["bag", 0]
		]
	]
]

Output:

0

7469-3561-1

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[]]

Output:

0

7469-3561-2

Input:

[[["id",1],["species",[[["food",0],["body",4],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],5,[]]

Output:

false

7469-3561-3

Input:

[[["id",5],["species",[[["food",3],["body",6],["population",5],["traits",["fat-tissue","climbing"]],["fat-food",2]]]],["bag",0]],7,[]]

Output:

[0,4]

7469-3561-4

Input:

[[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[[["id",10],["species",[]],["bag",0]],[["id",3],["species",[[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],[["id",5],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["id",9],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]]]]

Output:

[0,2,0]

9159-5803-1

Input:

[
    [
        ["id",1],
        ["species",
            [
                [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
            ]
        ],
        ["bag",4]
    ],
    10,
    [
        [
            ["id",2],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",3],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",4],
            ["species",
                [
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                    [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
                ]
            ],
            ["bag",4]
        ]
    ]
]

Output:

2

9159-5803-2

Input:

[
    [
        ["id",1],
        ["species",
            [
                [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
            ]
        ],
        ["bag",4]
    ],
    10,
    [
        [
            ["id",2],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",3],
            ["species",
                [
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                    [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",4],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]],
                    [["food",2],["body",4],["population",4],["traits",["warning-call"]]]
                ]
            ],
            ["bag",4]
        ]
    ]
]

Output:

[0,3]

9159-5803-3

Input:

[
    [
        ["id",1],
        ["species",
            [
                [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
            ]
        ],
        ["bag",4]
    ],
    2,
    [
        [
            ["id",2],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",3],
            ["species",
                [
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",3],["body",5],["population",5],["traits",["fat-tissue"]],["fat-food",2]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore"]]],
                    [["food",2],["body",4],["population",4],["traits",["carnivore","ambush"]]],
                    [["food",2],["body",4],["population",4],["traits",["warning-call"]]],
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]]
                ]
            ],
            ["bag",4]
        ],
        [
            ["id",4],
            ["species",
                [
                    [["food",2],["body",4],["population",4],["traits",["symbiosis"]]],
                    [["food",2],["body",4],["population",4],["traits",["warning-call"]]]
                ]
            ],
            ["bag",4]
        ]
    ]
]

Output:

[0,2]

matthias-1

Input:

[[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]],1,[]]

Output:

0

matthias-10

Input:

[[["id",11],["species",[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",2]]]],["bag",0]],3,[]]

Output:

[0,1]

matthias-11

Input:

[[["id",11],["species",[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",1]]]],["bag",0]],2,[]]

Output:

[0,2]

matthias-12

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],9,[[["id",502],["species",[[["food",3],["body",1],["population",4],["traits",[]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-13

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",503],["species",[[["food",1],["body",1],["population",1],["traits",["burrowing"]]]]],["bag",0]]]]

Output:

false

matthias-14

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",504],["species",[[["food",3],["body",1],["population",4],["traits",["burrowing"]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-15

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",512],["species",[[["food",3],["body",1],["population",4],["traits",["climbing"]]]]],["bag",0]]]]

Output:

false

matthias-16

Input:

[[["id",511],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore","climbing"]]]]],["bag",0]],1,[[["id",512],["species",[[["food",3],["body",1],["population",4],["traits",["climbing"]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-17

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",521],["species",[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]]]],["bag",0]]]]

Output:

false

matthias-18

Input:

[[["id",531],["species",[[["food",2],["body",7],["population",3],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",521],["species",[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-19

Input:

[[["id",532],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore","pack-hunting"]]]]],["bag",0]],1,[[["id",521],["species",[[["food",2],["body",2],["population",3],["traits",["hard-shell"]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-2

Input:

[[["id",55],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],1,[]]

Output:

0

matthias-20

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",542],["species",[[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]],[["food",3],["body",1],["population",4],["traits",[]]]]],["bag",0]]]]

Output:

false

matthias-21

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",543],["species",[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]]]],["bag",0]]]]

Output:

false

matthias-22

Input:

[[["id",501],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore"]]]]],["bag",0]],1,[[["id",543],["species",[[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]],[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]]]],["bag",0]]]]

Output:

false

matthias-23

Input:

[[["id",541],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore","ambush"]]]]],["bag",0]],1,[[["id",543],["species",[[["food",3],["body",1],["population",4],["traits",[]]],[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]]]],["bag",0]]]]

Output:

[0,0,0]

matthias-24

Input:

[[["id",551],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore","ambush","pack-hunting"]]]]],["bag",0]],1,[[["id",552],["species",[[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]],[["food",2],["body",2],["population",2],["traits",["hard-shell"]]]]],["bag",0]]]]

Output:

[0,0,1]

matthias-25

Input:

[[["id",551],["species",[[["food",2],["body",3],["population",4],["traits",["carnivore","ambush","pack-hunting"]]]]],["bag",0]],1,[[["id",553],["species",[[["food",2],["body",2],["population",3],["traits",["climbing","warning-call"]]],[["food",2],["body",2],["population",2],["traits",["hard-shell","climbing"]]]]],["bag",0]]]]

Output:

false

matthias-3

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[]]

Output:

false

matthias-4

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[[["id",100],["species",[]],["bag",0]],[["id",3],["species",[[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]]]]

Output:

[0,2,1]

matthias-5

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[[["id",100],["species",[]],["bag",0]],[["id",3],["species",[[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],[["id",4],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["id",5],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["id",6],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]]]]

Output:

[0,2,0]

matthias-6

Input:

[[["id",7],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",0],["body",2],["population",3],["traits",["fat-tissue"]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]],2,[[["id",100],["species",[]],["bag",0]]]]

Output:

[1,2]

matthias-7

Input:

[[["id",8],["species",[[["food",0],["body",2],["population",3],["traits",["fat-tissue"]]],[["food",0],["body",5],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],2,[[["id",100],["species",[]],["bag",0]]]]

Output:

[1,2]

matthias-8

Input:

[[["id",9],["species",[[["food",0],["body",3],["population",2],["traits",["fat-tissue"]]],[["food",0],["body",3],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],2,[]]

Output:

[1,2]

matthias-9

Input:

[[["id",10],["species",[[["food",0],["body",3],["population",3],["traits",["fat-tissue","climbing"]]],[["food",0],["body",3],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],3,[]]

Output:

[0,3]