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_QseFS):
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 spiders, 2 fireflys, 2 tigers, 3 praying mantiss, 4 beetles?
 Respond with an integer.

Question 1 (Question id: q_BME0bA):
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 4 spiders, 2 insects, 2 deers?
 Respond with an integer.

Question 2 (Question id: q_Yk1SvCR):
Determine the value of v that satisfies: 40 - 360*v = -320 Respond with an integer.

Question 3 (Question id: q_tJen):
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 1 deer, 4 beetles, 2 leechs, 2 starfishs, 4 crabs?
 Respond with an integer.



Return a JSON with each question id as a key.

For every question id, supply an object whose 'answer' field stores the solution. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
For string answers, include 'first_char' with the answer’s initial letter.

Now provide the result JSON using the described format.

{"ground_truth": {"q_QseFS": {"answer": 78, "task_type": "leg_counting", "half_answer": 39}, "q_BME0bA": {"answer": 52, "task_type": "leg_counting", "half_answer": 26}, "q_Yk1SvCR": {"answer": 1}, "q_tJen": {"answer": 78, "task_type": "leg_counting", "half_answer": 39}}}