Here is a set of basic questions producing integer or string outputs. Answer them and format the result precisely with the JSON instructions provided:

Question 0 (Question id: q_YSRLvM):
Your task is to count how many legs there are in total when given a list of animals.

Now, how many legs are there in total if you have 2 birds, 1 flatworm, 1 spider, 3 tigers, 2 praying mantiss?
 Respond with an integer.

Question 1 (Question id: q_iB4o):
Find the value of f in the equation: 170*f + 9 = 1029 Respond with an integer.

Question 2 (Question id: q_D1oylpZ2):
Solve for h: 6*h + 10 = 46 Respond with an integer.

Question 3 (Question id: q_0WuPG8Fh):
Calculate -5 - -3 + 5.



Your output must be a JSON mapping every question id to its answer info.

The value for each key should be an object that contains the answer in the field 'answer'.
If the response to a question is an integer that is even, also add the field 'half_answer' to the object which contains the answer integer divided by two.

Now provide the result JSON using the described format.

{"ground_truth": {"q_YSRLvM": {"answer": 36, "half_answer": 18}, "q_iB4o": {"answer": 6, "half_answer": 3}, "q_D1oylpZ2": {"answer": 6, "half_answer": 3}, "q_0WuPG8Fh": {"answer": 3}}}