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_thMoR):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "in"

Question 1 (Question id: q_nVidp):
Solve for m: 20 - 9*m = -70 Respond with an integer.

Question 2 (Question id: q_cnUEH):
Solve for g: 2*g - 11 = 19 Respond with an integer.

Question 3 (Question id: q_4lM44mb):
Calculate -5 - -8 + 3.

Question 4 (Question id: q_nWiQqh):
Find the value of p in the equation: 5*p + 15 = 65 Respond with an integer.

Question 5 (Question id: q_H6o5X):
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 3 dogs, 1 spider, 2 beetles?
 Respond with an integer.

Question 6 (Question id: q_FW5Uc1H5):
Calculate ( ( 8 + 5 ) ).

Question 7 (Question id: q_v8rfd):
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 jellyfishs, 4 sea slugs, 3 crabs, 1 chicken?
 Respond with an integer.



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

For every question id, supply an object whose 'answer' field stores the solution.
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_thMoR": {"answer": "n"}, "q_nVidp": {"answer": 10, "half_answer": 5}, "q_cnUEH": {"answer": 15}, "q_4lM44mb": {"answer": 6, "half_answer": 3}, "q_nWiQqh": {"answer": 10, "half_answer": 5}, "q_H6o5X": {"answer": 32, "half_answer": 16}, "q_FW5Uc1H5": {"answer": 13}, "q_v8rfd": {"answer": 32, "half_answer": 16}}}